Updated the PHP library to the latest API spec.