GithubHelp home page GithubHelp logo

laravelparse / laravel-parse Goto Github PK

View Code? Open in Web Editor NEW
117.0 6.0 26.0 84 KB

A Parse SDK bridge for Laravel 5

License: MIT License

PHP 100.00%
parse php bridge laravel laravel-parse library parse-sdk real-time realtime self-hosted

laravel-parse's Introduction

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).

laravel-parse's People

Contributors

al0mie avatar grahamcampbell avatar shalomabitan avatar unicodeveloper avatar vferdiansyah avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

laravel-parse's Issues

push_time

Hi Graham, thank you for your contributions, I hope you can help me with this, Im trying to schedule a push to be send in the future, but when I add the push_time it doesn't work, can you please help me?

Appreciate any help, regards Michael

    ParsePush::send(array(
      "channels" => ["xxxxx"],
      "data" => $data,
      "push_time" => "2014-11-01T14:35:00"
    ));

Problem with initial configuration

I am setting up Laravel-Parse with a brand new Laravel project I have created, and I'm stuck at the beginning. I was able to install laravel-parse with composer, and according to the documentation, the next step is to add:

'GrahamCampbell\Parse\ParseServiceProvider'

To the 'providers' array in config.app.php. When I add this, I get:

PHP Fatal error: Undefined constant 'GrahamCampbell\Parse\ParseServiceProvider' in app.php on line 126

I noticed that all of the other entries in 'providers' end with "::class", so I tried adding that, and I then I get:

PHP Fatal error: Class 'GrahamCampbell\Parse\ParseServiceProvider' not found in vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php on line 146

Did I miss a step here?

EDIT: Forgot to mention, I'm running Laravel v5.2.7, and PHP v5.6.13.

create a video

i am brand new to laravel and hosting . i have never hosted any app but if you pls create a video to learn me how to host in parse .

sincerly
soliman

This Laravel Parse Integration is working with Laravel 5.3 and Parse Platform Server

Recently I tried to connect my Parse server with LaraParse because in my project I used Laravel as a main framework and I needed to connect the Parse server from my laravel code. I was helpless and tried with LaraParse but it did not help. I tried with the official only PHP parse-sdk It still did not help me with laravel and parse connection, but it was working fine from the outside framework.

Today I have tested with this Laravel-Parse along with the official PHP/parse-sdk and it was working fine, it also works with the latest Laravel 5.3.* . So I would like to thank you for making this driver.

Authentification

Have you been able to build registration, login etc? I wanted to use the classes that are already there and just change a few thing to parse, but it has unfolded to be much more complicated and I can't find any diocumentation online. I was able to sign up a user, although it gives me an error saying I can't sign up a user with an empty password. It did create the user though. Unfortunately I was not able to change the login. It looks like it´s really hard to change all this stuff to parse. how did you do it?

compatibility issue with latest laravel version (5.5)

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for laravel-parse/parse ^3.0 -> satisfiable by laravel-parse/parse[3.0.0].
    - Conclusion: remove laravel/framework v5.5.17
    - Conclusion: don't install laravel/framework v5.5.17
    - laravel-parse/parse 3.0.0 requires illuminate/support 5.1.*|5.2.*|5.3.*|5.4.* -> satisfiable by illuminate/support[v5.1.1, v5.1.13, v5.1.16, v5.1.2, v5.1.20, v5.1.22, v5.1.25, v5.1.28, v5.1.30, v5.1.31, v5.1.41, v5.1.6, v5.1.8, v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.32, v5.2.37, v5.2.43, v5.2.45, v5.2.6, v5.2.7, v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9].
    - don't install illuminate/support v5.4.0|don't install laravel/framework v5.5.17
    - don't install illuminate/support v5.4.13|don't install laravel/framework v5.5.17
    - don't install illuminate/support v5.4.17|don't install laravel/framework v5.5.17
    - don't install illuminate/support v5.4.19|don't install laravel/framework v5.5.17
    - don't install illuminate/support v5.4.27|don't install laravel/framework v5.5.17
    - don't install illuminate/support v5.4.36|don't install laravel/framework v5.5.17
    - don't install illuminate/support v5.4.9|don't install laravel/framework v5.5.17
    - don't install illuminate/support v5.1.1|don't install laravel/framework v5.5.17
    - don't install illuminate/support v5.1.13|don't install laravel/framework v5.5.17
    - don't install illuminate/support v5.1.16|don't install laravel/framework v5.5.17
    - don't install illuminate/support v5.1.2|don't install laravel/framework v5.5.17
    - don't install illuminate/support v5.1.20|don't install laravel/framework v5.5.17
    - don't install illuminate/support v5.1.22|don't install laravel/framework v5.5.17
    - don't install illuminate/support v5.1.25|don't install laravel/framework v5.5.17
    - don't install illuminate/support v5.1.28|don't install laravel/framework v5.5.17
    - don't install illuminate/support v5.1.30|don't install laravel/framework v5.5.17
    - don't install illuminate/support v5.1.31|don't install laravel/framework v5.5.17
    - don't install illuminate/support v5.1.41|don't install laravel/framework v5.5.17
    - don't install illuminate/support v5.1.6|don't install laravel/framework v5.5.17
    - don't install illuminate/support v5.1.8|don't install laravel/framework v5.5.17
    - don't install illuminate/support v5.2.0|don't install laravel/framework v5.5.17
    - don't install illuminate/support v5.2.19|don't install laravel/framework v5.5.17
    - don't install illuminate/support v5.2.21|don't install laravel/framework v5.5.17
    - don't install illuminate/support v5.2.24|don't install laravel/framework v5.5.17
    - don't install illuminate/support v5.2.25|don't install laravel/framework v5.5.17
    - don't install illuminate/support v5.2.26|don't install laravel/framework v5.5.17
    - don't install illuminate/support v5.2.27|don't install laravel/framework v5.5.17
    - don't install illuminate/support v5.2.28|don't install laravel/framework v5.5.17
    - don't install illuminate/support v5.2.31|don't install laravel/framework v5.5.17
    - don't install illuminate/support v5.2.32|don't install laravel/framework v5.5.17
    - don't install illuminate/support v5.2.37|don't install laravel/framework v5.5.17
    - don't install illuminate/support v5.2.43|don't install laravel/framework v5.5.17
    - don't install illuminate/support v5.2.45|don't install laravel/framework v5.5.17
    - don't install illuminate/support v5.2.6|don't install laravel/framework v5.5.17
    - don't install illuminate/support v5.2.7|don't install laravel/framework v5.5.17
    - don't install illuminate/support v5.3.0|don't install laravel/framework v5.5.17
    - don't install illuminate/support v5.3.16|don't install laravel/framework v5.5.17
    - don't install illuminate/support v5.3.23|don't install laravel/framework v5.5.17
    - don't install illuminate/support v5.3.4|don't install laravel/framework v5.5.17
    - Installation request for laravel/framework (locked at v5.5.17, required as 5.5.*) -> satisfiable by laravel/framework[v5.5.17].


Installation failed, reverting ./composer.json to its original content.

Incorrect version in documentation

Hi, just wanted to let you know that in your docs you put

{
    "require": {
        "graham-campbell/parse": "^3.0"
    }
}

but based on your version and from composer, the version is 2.4

{
    "require": {
        "graham-campbell/parse": "^2.4"
    }
}

graham-campbell/parse could not be found

Hi Graham, once again thank you for your contributions, this package has really help me, I just uploaded to L5 and when I put ("graham-campbell/parse": "~2.0") in the composer and I get this error:
"The requested package graham-campbell/parse could not be found in any version, there may be a typo in the package name."

I wonder what Im doing wrong?

Appreciate any help, regards

Laravel Session Store Wrong Implementation

This is more of a gripe than an issue 💩

The ParseSessionStorage.php file is trying to store session data using the $_SESSION variable. Laravel 4 does not use the global $_SESSION variable to store session data. Why was this part not changed to use the Laravel Session class?

This seems like a critical element to logging in/out users. No mention is made of it in the docs. A developer trying to implement user reg/log in/out (like me) might get confused as to why

ParseUser::getCurrentUser();

returns null even after logging in. It makes that method essentially useless.

Incorrect Configuaration Documentation

In the readme Configuration part,

$ php artisan publish:config graham-campbell/parse

should be

$ php artisan config:publish graham-campbell/parse

tested on laravel v4.2

Lumen support

Please add to this package Lumen support. It works on lumen, but there are troubles with config loading. It don't load config from correct path.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.