PHPackages                             hipsterjazzbo/laraparse - 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. hipsterjazzbo/laraparse

ActiveLibrary[API Development](/categories/api)

hipsterjazzbo/laraparse
=======================

Integrate your Laravel 5 project with Parse (parse.com)

v0.1.6(10y ago)284.5k18[9 issues](https://github.com/hipsterjazzbo/LaraParse/issues)MITPHP

Since Apr 16Pushed 9y ago3 watchersCompare

[ Source](https://github.com/hipsterjazzbo/LaraParse)[ Packagist](https://packagist.org/packages/hipsterjazzbo/laraparse)[ RSS](/packages/hipsterjazzbo-laraparse/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (18)Used By (0)

LaraParse
=========

[](#laraparse)

LaraParse provides a nice integration for using Parse (parse.com) with Laravel 5+.

Specifically, it

- Handles the registration and loading of the Parse SDK
- Gives you an auth provider you can use to login and register using Parse
- Provides a system for easily creating and registering subclasses, including an artisan generator and easy config
- Provides generators and base classes for repositories

Future plans include

- Automatic generation of subclasses\*
- Docblock generation for subclasses\*

\* *Depends on a schema API being released by Parse*

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

[](#installation)

First, include LaraParse in your `composer.json`:

```
composer require hipsterjazzbo/laraparse
```

Then load the service provider in your `config/app.php`:

```
'LaraParse\ParseServiceProvider'
```

You'll also need to publish the config, so you can provide your keys:

```
php artisan vendor:publish  --provider="LaraParse\ParseServiceProvider" --tag="config"
```

Usage
-----

[](#usage)

For general usage, you can just call the Parse SDK classes and methods like normal. See [ParsePlatform/parse-php-sdk](https://github.com/ParsePlatform/parse-php-sdk) for more info.

```
$query = new ParseQuery('Class');
$query->equalTo('key', 'value');
$object = $query->first();
```

### Auth Provider

[](#auth-provider)

LaraParse provides a driver for Laravel's built-in auth system to work with Parse. To use it, simply go to your `config/auth.php` and update the `'driver'` key to `'parse'`

You may then use `Auth::attempt()` and friends as normal.

### Subclasses

[](#subclasses)

Subclasses can make Parse a lot easier to work with. They save you from always dealing with generic `ParseObjects`, and provide you with a place to add helper methods and even use docblocks to get column auto-completion in your IDE.

You can generate a subclass like so:

```
php artisan parse:subclass ClassName
```

It is assumed that `ClassName` is the same as the class within Parse, but if not you can use the `--parse-class=ParseClass` option to set it manually.

The subclass will be created within `app/ParseClasses`.

You must then register the subclass in your `config/parse.php` file.

**Note:** If you'd like to subclass the Parse `User` class, you should extend `LaraParse\Subclasses\User`, to ensure the Auth driver will still work.

#### Casting

[](#casting)

Generated subclasses use the `\LaraParse\Traits\CastsParseProperties` trait, which tries to help you out a bit. It will:

- Change all `Date` columns into `\Carbon\Carbon` instances
- Allow you to access built-in columns as properties (for instance, `$class->objectId` instead of `$class->getObjectId()`)
- Allow you to specify a method on your subclass with the same name as a Parse column, that will be called when accessing that column.

### Repositories

[](#repositories)

LaraParse includes a few commands and base classes to assist with setting up repositories to use with Parse.

To generate a new repository, you can use the artisan command:

```
php artisan parse:repository ClassName
```

Like subclasses, it is assumed that `ClassName` is the same as the class within Parse, but if not you can use the `--parse-class=ParseClass` option to set it manually.

By default, this command will generate both a contract and an implementation that extends an abstract base class, providing a full-featured repository that's ready to go.

If you'd rather just generate an implementation, you can use `--which="implementation"`.

See `\LaraParse\Repositories\Contracts\ParseRepository` to learn what methods are available.

If you want to bind the implementation to the contract you can populate the repositories array in the parse.php config ()

#### Using master key

[](#using-master-key)

If you need to use the master key for a query, you can do it like so:

```
$repository = new ClassRepository();
$repository->userMasterKey(true)->all();
```

Thanks
------

[](#thanks)

Thanks a lot to [@gfosco](https://github.com/gfosco) over at [ParsePlatform/parse-php-sdk](https://github.com/ParsePlatform/parse-php-sdk) for helping deal with a few PRs that were neccessary for this package to be possible.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance14

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 52.9% of commits — single point of failure

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 ~25 days

Recently: every ~76 days

Total

16

Last Release

3672d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/231361?v=4)[Hazel Fidecaro](/maintainers/HipsterJazzbo)[@hipsterjazzbo](https://github.com/hipsterjazzbo)

---

Top Contributors

[![nicklee1990](https://avatars.githubusercontent.com/u/7308759?v=4)](https://github.com/nicklee1990 "nicklee1990 (9 commits)")[![dziad](https://avatars.githubusercontent.com/u/10219493?v=4)](https://github.com/dziad "dziad (2 commits)")[![AlexCatch](https://avatars.githubusercontent.com/u/13490042?v=4)](https://github.com/AlexCatch "AlexCatch (2 commits)")[![threesquared](https://avatars.githubusercontent.com/u/892142?v=4)](https://github.com/threesquared "threesquared (1 commits)")[![danjordan](https://avatars.githubusercontent.com/u/182101?v=4)](https://github.com/danjordan "danjordan (1 commits)")[![oflannabhra](https://avatars.githubusercontent.com/u/702042?v=4)](https://github.com/oflannabhra "oflannabhra (1 commits)")[![devgeek27](https://avatars.githubusercontent.com/u/1168239?v=4)](https://github.com/devgeek27 "devgeek27 (1 commits)")

### Embed Badge

![Health badge](/badges/hipsterjazzbo-laraparse/health.svg)

```
[![Health](https://phpackages.com/badges/hipsterjazzbo-laraparse/health.svg)](https://phpackages.com/packages/hipsterjazzbo-laraparse)
```

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.2M720](/packages/statamic-cms)[team-reflex/discord-php

An unofficial API to interact with the voice and text service Discord.

1.1k379.4k24](/packages/team-reflex-discord-php)[spinen/laravel-clickup

SPINEN's Laravel Package for ClickUp.

282.2k](/packages/spinen-laravel-clickup)

PHPackages © 2026

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