Updating PHP library to reflect latest API changes