Skip to content
This repository has been archived by the owner on Oct 17, 2020. It is now read-only.

thomaswelton/laravel-oauth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Latest Stable Version Total Downloads Bitdeli Badge

This aplha version is currently under active development and subject to change. A demo site is also underconstruction. And can be view here http://laravel-oauth.herokuapp.com/ it is currently a free app on Heroku, this means that the server may sleep if left unactive. It will wake up again the next time it's viewed but start up may take a few seconds. This package is not the cause of the slow response time 😄

Feel free to install this project for testing purposes. But it is not recomeneded as the foundation to build new projects on... yet. I'm hoping to get all this wrapped up soon. Once the demo site is build I'll remove this notice and let you start playing in production.

Right now there is only one potentially breaking change. It is outlined here, feel free to add any comments on what syntax you'd prefer #1

If you're interested in using a new OAuth package for Laravel 4 please "watch" or "star" this repo above.

Installation

Update your composer.json file to include this package as a dependency

"thomaswelton/laravel-oauth": "0.0.1"

Register the OAuth service provider by adding it to the providers array in the app/config/app.php file.

Thomaswelton\LaravelOauth\LaravelOauthServiceProvider

Alias the OAuth facade by adding it to the aliases array in the app/config/app.php file.

'aliases' => array(
	'OAuth' => 'Thomaswelton\LaravelOauth\Facades\OAuth'
)

Configuration

Copy the config file into your project by running

php artisan config:publish thomaswelton/laravel-oauth

Migrations

Optionally if using OAuth for user login you'll need to run the migration

php artisan migrate --package="thomaswelton/laravel-oauth"