Package Data | |
---|---|
Maintainer Username: | shamimhasan |
Maintainer Contact: | shamimhasan@ovi.com (Darkvirus) |
Package Create Date: | 2014-10-27 |
Package Last Update: | 2014-10-27 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-22 03:00:20 |
Package Statistics | |
---|---|
Total Downloads: | 26 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
oauth-4-laravel is a simple laravel 4 service provider (wrapper) for Phpvirus/Oauth which provides oAuth support in PHP 5.3+ and is very easy to integrate with any project which requires an oAuth client.
The library supports both oAuth 1.x and oAuth 2.0 compliant services. A list of currently implemented services can be found below. More services will be implemented soon.
Included service implementations:
To learn more about Phpvirus/Oauth go here
This library can be found on Packagist. The recommended way to install this is through composer.
Add oauth-4-laravel to your composer.json file:
"require": {
"phpvirus/oauth": "0.1.*@dev",
"darkvirus/oauth-4-laravel": "dev-master"
}
And install dependencies:
$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar install
Or Use composer to install this package.
$ composer update
Register the service provider within the providers
array found in app/config/app.php
:
'providers' => array(
// ...
'Darkvirus\OAuth\OAuthServiceProvider'
)
Add an alias within the aliases
array found in app/config/app.php
:
'aliases' => array(
// ...
'OAuth' => 'Darkvirus\OAuth\Facade\OAuth',
)
There are two ways to configure oauth-4-laravel.
You can choose the most convenient way for you.
You can use package config file which can be
generated through command line by artisan (option 1) or
you can simply create a config file called oauth-4-laravel.php
in
your app\config\
directory (option 2).
Create configuration file for package using artisan command
$ php artisan config:publish darkvirus/oauth-4-laravel
Create configuration file manually in config directory app/config/oauth-4-laravel.php
and put there code from below.
<?php
return array(
/*
|--------------------------------------------------------------------------
| oAuth Config
|--------------------------------------------------------------------------
*/
/**
* Storage
*/
'storage' => 'Session',
/**
* Consumers
*/
'consumers' => array(
/**
* Stripe
*/
'Stripe' => array(
'client_id' => '',
'client_secret' => '',
),
)
);