How to update Parse SDK for PHP

First of all, you have to install the latest version of the Parse SDK for PHP. You can download it here:

Download Parse SDK for PHP

 

Then, you have to update your app to connect to https://parseapi.back4app.com instead of https://api.parse.com. You need to use the code below:

ParseClient::initialize('YOUR_APP_ID', 'YOUR_REST_KEY', 'YOUR_MASTER_KEY');
ParseClient::setServerURL('https://parseapi.back4app.com', '/');

 

It’s done! You only need to publish the new version of your PHP app!

Once your users have updated the app to the new version, they will start requesting back{4}app’s API instead of parse.com one.

Not updated apps will continue connecting in parse.com API, but DON’T WORRY! It will nicely work until January 28, 2017. Because your database was successfully migrated to back{4}app, both parseapi.back4app.com and api.parse.com will read/update the data into the same database: your new migrated database in the back{4}app’s servers. Learn more.