PHPackages                             francimedia/parse-php-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. francimedia/parse-php-sdk

ActiveLibrary[API Development](/categories/api)

francimedia/parse-php-sdk
=========================

Parse PHP SDK

1.0.4(11y ago)021Parse Platform LicensePHPPHP &gt;=5.4.0

Since Aug 4Pushed 11y ago1 watchersCompare

[ Source](https://github.com/francimedia/parse-php-sdk)[ Packagist](https://packagist.org/packages/francimedia/parse-php-sdk)[ Docs](https://github.com/parseplatform/parse-php-sdk)[ RSS](/packages/francimedia-parse-php-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (10)Used By (0)

Parse PHP SDK
-------------

[](#parse-php-sdk)

The Parse PHP SDK gives you access to the powerful Parse cloud platform from your PHP app or script.

Installation
------------

[](#installation)

[Get Composer](https://getcomposer.org/download/), the PHP package manager. Then create a composer.json file in your projects root folder, containing:

```
{
  "require": {
    "parse/php-sdk" : "1.0.*"
  }
}
```

Run "composer install" to download the SDK and set up the autoloader, and then require it from your PHP script:

```
require 'vendor/autoload.php';
```

Note: The Parse PHP SDK requires PHP 5.4 or newer.

Alternative Method
------------------

[](#alternative-method)

If you don't want to use Composer, you can include the `autoload.php`file in your code to automatically load the Parse SDK classes.

```
require 'autoload.php';
```

Initialization
--------------

[](#initialization)

After including the required files from the SDK, you need to initalize the ParseClient using your Parse API keys:

```
ParseClient::initialize( $app_id, $rest_key, $master_key );
```

Usage
-----

[](#usage)

Check out the [Parse PHP Guide](https://www.parse.com/docs/php_guide) for the full documentation.

Add the "use" declarations where you'll be using the classes. For all of the sample code in this file:

```
use Parse\ParseObject;
use Parse\ParseQuery;
use Parse\ParseACL;
use Parse\ParsePush;
use Parse\ParseUser;
use Parse\ParseInstallation;
use Parse\ParseException;
use Parse\ParseAnalytics;
use Parse\ParseFile;
use Parse\ParseCloud;
```

Objects:

```
$object = ParseObject::create("TestObject");
$objectId = $object->getObjectId();
$php = $object->get("elephant");

// Set values:
$object->set("elephant", "php");
$object->set("today", new DateTime());
$object->setArray("mylist", [1, 2, 3]);
$object->setAssociativeArray(
  "languageTypes", array("php" => "awesome", "ruby" => "wtf")
);

// Save:
$object->save();
```

Users:

```
// Signup
$user = new ParseUser();
$user->setUsername("foo");
$user->setPassword("Q2w#4!o)df");
try {
  $user->signUp();
} catch (ParseException $ex) {
  // error in $ex->getMessage();
}

// Login
try {
  $user = ParseUser::logIn("foo", "Q2w#4!o)df");
} catch(ParseException $ex) {
  // error in $ex->getMessage();
}

// Current user
$user = ParseUser::getCurrentUser();
```

Security:

```
// Access only by the ParseUser in $user
$userACL = ParseACL::createACLWithUser($user);

// Access only by master key
$restrictedACL = new ParseACL();

// Set individual access rights
$acl = new ParseACL();
$acl->setPublicReadAccess(true);
$acl->setPublicWriteAccess(false);
$acl->setUserWriteAccess($user, true);
$acl->setRoleWriteAccessWithName("PHPFans", true);
```

Queries:

```
$query = new ParseQuery("TestObject");

// Get a specific object:
$object = $query->get("anObjectId");

$query->limit(10); // default 100, max 1000

// All results:
$results = $query->find();

// Just the first result:
$first = $query->first();

// Process ALL (without limit) results with "each".
// Will throw if sort, skip, or limit is used.
$query->each(function($obj) {
  echo $obj->getObjectId();
});
```

Cloud Functions:

```
$results = ParseCloud::run("aCloudFunction", array("from" => "php"));
```

Analytics:

```
ParseAnalytics::track("logoReaction", array(
  "saw" => "elephant",
  "said" => "cute"
));
```

Files:

```
// Get from a Parse Object:
$file = $aParseObject->get("aFileColumn");
$name = $file->getName();
$url = $file->getURL();
// Download the contents:
$contents = $file->getData();

// Upload from a local file:
$file = ParseFile::createFromFile(
  "/tmp/foo.bar", "Parse.txt", "text/plain"
);

// Upload from variable contents (string, binary)
$file = ParseFile::createFromData($contents, "Parse.txt", "text/plain");
```

Push:

```
$data = array("alert" => "Hi!");

// Push to Channels
ParsePush::send(array(
  "channels" => ["PHPFans"],
  "data" => $data
));

// Push to Query
$query = ParseInstallation::query();
$query->equalTo("design", "rad");
ParsePush::send(array(
  "where" => $query,
  "data" => $data
));
```

Contributing / Testing
----------------------

[](#contributing--testing)

See the CONTRIBUTORS.md file for information on testing and contributing to the Parse PHP SDK. We welcome fixes and enhancements.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~26 days

Total

5

Last Release

4196d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ac6034f39604db841841b8915fa4b954e76bb8f3145969e815a37fa2022802f?d=identicon)[francimedia](/maintainers/francimedia)

---

Top Contributors

[![gfosco](https://avatars.githubusercontent.com/u/406732?v=4)](https://github.com/gfosco "gfosco (11 commits)")[![niraj-shah](https://avatars.githubusercontent.com/u/690705?v=4)](https://github.com/niraj-shah "niraj-shah (7 commits)")[![schuylr](https://avatars.githubusercontent.com/u/12628715?v=4)](https://github.com/schuylr "schuylr (5 commits)")[![egreenmachine](https://avatars.githubusercontent.com/u/1035982?v=4)](https://github.com/egreenmachine "egreenmachine (3 commits)")[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (2 commits)")[![vespakoen](https://avatars.githubusercontent.com/u/876117?v=4)](https://github.com/vespakoen "vespakoen (1 commits)")[![osniel](https://avatars.githubusercontent.com/u/2163829?v=4)](https://github.com/osniel "osniel (1 commits)")[![somus](https://avatars.githubusercontent.com/u/1802828?v=4)](https://github.com/somus "somus (1 commits)")[![cihadoge](https://avatars.githubusercontent.com/u/1696982?v=4)](https://github.com/cihadoge "cihadoge (1 commits)")

---

Tags

sdkparse

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/francimedia-parse-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/francimedia-parse-php-sdk/health.svg)](https://phpackages.com/packages/francimedia-parse-php-sdk)
```

###  Alternatives

[parse/php-sdk

Parse PHP SDK

8101.1M11](/packages/parse-php-sdk)[appwilio/cdek-sdk

CDEK API SDK (cdek.ru)

406.5k](/packages/appwilio-cdek-sdk)[mocking-magician/coinbase-pro-sdk

Library for coinbase pro API calls

223.2k](/packages/mocking-magician-coinbase-pro-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
