Parse, which Facebook acquired in last April, today released its first open-source PHPSDK, allowing developers to perform secondary development on the server side based on this SDK. The PHP script feature released this time includes data storage, user management, message pushing, and user behavior tracking. developers can integrate the code into their existing PHP scripts.
Pare released the Parse php sdk to enable Parse to integrate "into a new type of applications and different use cases ." In addition, the company claims that this is their "first server-side language-oriented SDK and the first truly open-source SDK ."
So far, Parse has provided several API libraries to make it easier for the front-end to integrate Parse, including support for Objective-C, Java,. NET, and JavaScript. In addition, Parse exposes interfaces locally through REST. These libraries cover the main application scenarios of Parse, so that developers do not "re-develop their own backend for each service that their applications need to access", for example, you need to manage servers and write server-side code.
On the other hand, Parse also provides a Cloud Code environment based on their own JavaScript SDK for scenarios where the server needs some logic. For example, one of the benefits of Parse Cloud Code is that updates are immediately available to all environments without the need to wait until new applications are released, so that functions can be dynamically modified. With the release of the Parse php sdk, the same benefits can be achieved with PHP.
The structure of the Parse php sdk is similar to that of other Parse SDKs. it is built around ParseObject, which contains key-value pairs for non-mode and JSON-compatible data. PFObject can be saved, retrieved, updated, and deleted. Query is modeled by PFQuery. it allows both basic queries and link queries. In addition, Parse also supports role-based access control, which provides a logical way to group users with the same access permissions for Parse data.
Niaj Shah is a PHP developer in London, England. he has created a simple Getting Started Tutorial for Parse php sdk. This tutorial aims to simplify things, Niaj said, "the documentation of the Parse php sdk is not very well organized. to find a complete solution, you may have to skip between documents ."
Attached Parse open source php sdk: http://www.jb51.net/codes/203051.html