Update PHP SDK to use version 2 of the API.

The fields have also been made private and the public fields have been replaced by getters and setters.
Merge pull request #314 from koesie10/php-sdk

Update PHP SDK to use version 2 of the API