Modifications to work with new PHP client library

Modifications to work with new PHP client library