2017 © Pedro Peláez
 

library oauth-4-laravel

OAuth Service Provider for Laravel 4

image

darkvirus/oauth-4-laravel

OAuth Service Provider for Laravel 4

  • Monday, October 27, 2014
  • by shamimhasan
  • Repository
  • 1 Watchers
  • 0 Stars
  • 20 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

OAuth wrapper for Laravel 4

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., (*1)


Supported services

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., (*2)

Included service implementations:, (*3)

  • OAuth1
    • BitBucket
    • Etsy
    • FitBit
    • Flickr
    • Scoop.it!
    • Tumblr
    • Twitter
    • Xing
    • Yahoo
  • OAuth2
    • Amazon
    • BitLy
    • Box
    • Dailymotion
    • Dropbox
    • Facebook
    • Foursquare
    • GitHub
    • Google
    • Harvest
    • Heroku
    • Instagram
    • LinkedIn
    • Mailchimp
    • Microsoft
    • PayPal
    • Pocket
    • Reddit
    • RunKeeper
    • SoundCloud
    • Stripe
    • Vkontakte
    • Yammer
    • more to come!

To learn more about Phpvirus/Oauth go here, (*4)

Installation

This library can be found on Packagist. The recommended way to install this is through composer., (*5)

Add oauth-4-laravel to your composer.json file:, (*6)

"require": {
    "phpvirus/oauth": "0.1.*@dev",
    "darkvirus/oauth-4-laravel": "dev-master"
}

And install dependencies:, (*7)

$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar install

Or Use composer to install this package., (*8)

$ composer update

Registering the Package

Register the service provider within the providers array found in app/config/app.php:, (*9)

'providers' => array(
    // ...

    'Darkvirus\OAuth\OAuthServiceProvider'
)

Add an alias within the aliases array found in app/config/app.php:, (*10)

'aliases' => array(
    // ...

    'OAuth' => 'Darkvirus\OAuth\Facade\OAuth',
)

Configuration

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)., (*11)

Option 1

Create configuration file for package using artisan command, (*12)

$ php artisan config:publish darkvirus/oauth-4-laravel

Option 2

Create configuration file manually in config directory app/config/oauth-4-laravel.php and put there code from below., (*13)

<?php
return array( 

    /*
    |--------------------------------------------------------------------------
    | oAuth Config
    |--------------------------------------------------------------------------
    */

    /**
     * Storage
     */
    'storage' => 'Session', 

    /**
     * Consumers
     */
    'consumers' => array(

        /**
         * Stripe
         */
        'Stripe' => array(
            'client_id' => '',
            'client_secret' => '',
        ),      

    )

);

The Versions

27/10 2014

dev-master

9999999-dev https://github.com/shamimhasan/Latavel-OAuth

OAuth Service Provider for Laravel 4

  Sources   Download

MIT

The Requires

 

The Development Requires

by Darkvirus

laravel php oauth lusitanian