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.