Site icon Web Niraj

Parse.com: Using the Official Parse PHP SDK (v1.0.x)

Parse has released an official PHP SDK, similar to the Facebook PHP SDK 4.0. As usual, it’s not very well documented and you may have to jump between different documentations to find the complete solution. As always, I’ve created a simple tutorial to help you get started with using the new Parse PHP SDK. I’ve also created an autoload script you can use instead of using compose.

Autoloader

If you don’t want to use compose to use the SDK, I’ve created an autoloader you can use to include all the files form the PHP SDK easily. Simply use the below code and add it to the autoload.php file.

See the gist on github.

Getting Started

You can then include the autoload file in your code and initialise it as shown in the code below. You can then save data to Parse, or retrieve results as shown in the code too.

See the gist on github.

Documentation

The complete documentation for the official Parse PHP SDK is located in two places: the Parse PHP SDK GitHub repository and the Parse Documentation website.


Need specific help? Leave us a comment below and I’ll create the most requested tutorials.

Exit mobile version