added server PHP library and functionality