PHP SDK Overview
The MyCloud API PHP SDK provides a complete PHP implementation of the client side the API. With the PHP SDK, you do not need to worry about any of the low level details of programming with the API. Connectivity, authentication, model objects, logging, and other supporting code is all provided for you.
When working with the PHP SDK, you will work primarily with the API model objects. Model objects provide everything you need to work with any data related to your shop, as well as implement all of the calls to the API server needed to create, get and update that data.
Model Objects
All model objects in the PHP SDK are standard PHP classes and class objects. You can work with them the same as you would with any PHP class and object.
Model Attributes
The model objects provide attributes. These attributes use the PHP magic getter/setter paradigm. This means that in general you can work with the attributes as object fields. Furthermore, for each attribute the class will provide a getter and setter method call.
For example, the Customer model has a name attribute. Thus, you can access the value of the customer name with either of these programming constructs:
$customer->name
$customer->getName()