completed PHP client