Skip to content

LaravelParse/Laravel-Parse

Repository files navigation

Laravel Parse

Laravel Parse is currently maintained by Prosper Otemuyiwa, and is a Parse SDK bridge for Laravel 5. Feel free to check out the change log, releases, license, and contribution guidelines.

StyleCI Status Build Status Software License Latest Version

Installation

Either PHP 5.5+ or HHVM 3.6+ are required.

To get the latest version of Laravel Parse, simply require the project using Composer:

$ composer require laravel-parse/parse

Instead, you may of course manually update your require block and run composer update if you so choose:

{
    "require": {
        "laravel-parse/parse": "^3.0"
    }
}

Once Laravel Parse is installed, you need to register the service provider. Open up config/app.php and add the following to the providers key.

  • 'LaravelParse\Parse\ParseServiceProvider'

Configuration

Laravel Parse requires configuration. To get started, you'll need to publish all vendor assets:

$ php artisan vendor:publish --provider="LaravelParse\Parse\ParseServiceProvider"

This will create a config/parse.php file in your app that you can modify to set your configuration. Also, make sure you check for changes to the original config file in this package between releases.

There are five config options:

Parse App Id

This option ('app_id') is where you may specify your parse app id. The default value for this setting is 'your-app-id'.

Parse Rest Key

This option ('rest_key') is where you may specify your parse rest key. The default value for this setting is 'your-rest-key'.

Parse Master Key

This option ('master_key') is where you may specify your parse master key. The default value for this setting is 'your-master-key'.

Parse Server URL

This option ('server_url') is where you may specify your parse server url. The default value for this setting is 'https://api.parse.com/'.

Parse Mount Point

This option ('mount_point') is where you may specify your parse mount point. The default value for this setting is '1'.

Parse Session Handler

This option ('session') is where you may specify your parse session handler. The default value for this setting is 'laravel'.

Usage

This package is only responsible for the automatic initialisation of the parse client. See the parse docs at https://github.com/ParsePlatform/parse-php-sdk.

Security

If you discover a security vulnerability within this package, please send an e-mail to Prosper Otemuyiwa at [email protected]. All security vulnerabilities will be promptly addressed.

License

Laravel Parse is licensed under The MIT License (MIT).