make PHP client work and update documentation