andyjessop / socialist by andyjessop

A social authentication REST API for Laravel 5
14
0
3
Package Data
Maintainer Username: andyjessop
Package Create Date: 2015-07-23
Package Last Update: 2015-07-24
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-04-30 15:13:25
Package Statistics
Total Downloads: 14
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 3
Total Forks: 0
Total Open Issues: 0

Socialist

A social authentication REST API for Laravel 5

WARNING: THIS IS STILL UNDER DEVELOPMENT AND SHOULD IN NO WAY BE USED FOR PRODUCTION

Installation

Add the package to your composer.json file:

"require": {
    ...
    "andyjessop/socialist": "dev-master"
},

Then update:

composer update

Add the service provider to 'YourRoot/config/app.php' providers array

'providers' => [

    ...
    AndyJessop\Socialist\SocialistServiceProvider::class,
],

Publish the config and migration files:

php artisan vendor:publish

Run the migration

php artisan migrate

Events

Socialist exposes some events for you to hook into in your application. To register listeners, follow the instructions in the Laravel Docs.

AndyJessop\Socialist\Events\UserHasLoggedIn
  • fires when a user logs in

  • exposes user data

    AndyJessop\Socialist\Events\UserHasRegistered

  • fires when a user is created

  • exposes user data