PHPackages                             jkbennemann/laravel-4-social-oauth - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. jkbennemann/laravel-4-social-oauth

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

jkbennemann/laravel-4-social-oauth
==================================

OAuth Service Provider for Laravel 4

1.0(5y ago)05MITPHPPHP &gt;=7.1

Since Jul 26Pushed 5y ago1 watchersCompare

[ Source](https://github.com/jkbennemann/laravel-4-social-oauth)[ Packagist](https://packagist.org/packages/jkbennemann/laravel-4-social-oauth)[ RSS](/packages/jkbennemann-laravel-4-social-oauth/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

OAuth wrapper for Laravel 4
===========================

[](#oauth-wrapper-for-laravel-4)

oauth-laravel-4 is a simple laravel 4 service provider for [socialconnect/auth](https://github.com/SocialConnect/auth)which provides OAuth support for PHP 5.3+ and is very easy to integrate with any project which requires an OAuth client.

Supported services
------------------

[](#supported-services)

The library supports OAuth 1.x and OAuth 2.0 compliant services. A list of currently implemented services can be found [on their site](https://socialconnect.lowl.io/providers.html). Some examples are listed below:

Included service implementations:

- Steam OpenID
- Atlassian OAuth1
- 500px OAuth1
- Trello OAuth1
- Tumblr OAuth1
- Twitter OAuth1
- Amazon OAuth2
- Facebook OAuth2 3.3
- Vk (ВКонтакте) OAuth2 5.100
- Instagram OAuth2
- Google OAuth2
- GitHub OAuth2
- GitLab OAuth2
- Slack OAuth2
- BitBucket OAuth2
- Twitch OAuth2
- Vimeo OAuth2
- DigitalOcean OAuth2
- Yandex OAuth2
- MailRu OAuth2
- Microsoft (MSN) OAuth2
- Meetup OAuth2
- Odnoklassniki OAuth2
- Discord OAuth2
- SmashCast OAuth2
- Steein OAuth2
- LinkedIn OAuth2
- Yahoo! OAuth2
- Wordpress OAuth2
- Google OpenIDConnect
- PixelIn OpenIDConnect
- more to come!

To learn more about SocialConnect/auth go [here](https://github.com/SocialConnect/auth)

Installation
------------

[](#installation)

Use [composer](http://getcomposer.org) to install this package.

```
$ composer require jkbennemann/oauth-laravel-4

```

### Registering the Package

[](#registering-the-package)

Register the service provider within the `providers` array found in `app/config/app.php`:

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

	'Jkbennemann\OAuth\OAuthServiceProvider',
)
```

Add an alias within the `aliases` array found in `app/config/app.php`:

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

	'OAuth' => 'Jkbennemann\OAuth\Facade\OAuth',
)
```

Configuration
-------------

[](#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 `laravel-4-social-oauth.php` in your `app\config\` directory (option 2).

#### Option 1

[](#option-1)

Create configuration file for package using artisan command

```
$ php artisan config:publish jkbennemann/laravel-4-social-oauth

```

#### Option 2

[](#option-2)

Create configuration file manually in config directory `app/config/laravel-4-social-oauth.php` and put there code from below.

```
