PHPackages                             hannesvdvreken/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. hannesvdvreken/oauth

Abandoned → [hannesvdvreken/php-oauth](/?search=hannesvdvreken%2Fphp-oauth)Library[Authentication &amp; Authorization](/categories/authentication)

hannesvdvreken/oauth
====================

Laravel OAuth IoC wrapper Library

v0.0.5(12y ago)252.0k2MITPHPPHP &gt;=5.3

Since Sep 21Pushed 11y ago3 watchersCompare

[ Source](https://github.com/hannesvdvreken/laravel-oauth)[ Packagist](https://packagist.org/packages/hannesvdvreken/oauth)[ Docs](https://github.com/hannesvdvreken/laravel-oauth)[ RSS](/packages/hannesvdvreken-oauth/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (4)Versions (3)Used By (0)

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

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

[![Build Status](https://camo.githubusercontent.com/bf2118172cd08fdc8944149d395ca4322c14f0125d3f56a35247b8414a1de88b/68747470733a2f2f7472617669732d63692e6f72672f68616e6e657376647672656b656e2f6c61726176656c2d6f617574682e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/hannesvdvreken/laravel-oauth)

**Suggestion:** This is just a Service Provider with a Laravel Session class for token storage. If you would like to keep using Lusitanian's PHPoAuthLib, please use [`artdarek/oauth-4-laravel`](https://github.com/artdarek/oauth-4-laravel) by [Dariusz Prząda](https://github.com/artdarek). If you are interested in [Guzzle](http://guzzle.readthedocs.org/en/latest/)-based service classes, [**look here!**](https://github.com/hannesvdvreken/php-oauth)

Usage
-----

[](#usage)

Follow the steps below and you will be able to get an object of the [service](https://github.com/Lusitanian/PHPoAuthLib/tree/master/src/OAuth/OAuth2/Service) class with one rule:

```
$fb = OAuth::consumer('Facebook');
$fb = OAuth::consumer('Facebook', 'https://example.com/callback');
```

Optionally, add a second parameter with the URL which the service needs to redirect to. Default, it uses the `URL::current()`, provided by Laravel (L4).

How to integrate
----------------

[](#how-to-integrate)

### Alias

[](#alias)

Add an alias to the bottom of app/config/app.php

```
'OAuth' => 'hannesvdvreken\OAuth\facade\OAuth',
```

and register this service provider at the bottom of the `providers` array:

```
'providers' => array(
    ...
    'hannesvdvreken\OAuth\OAuthServiceProvider',
),
```

### Credentials

[](#credentials)

Add your credentials to app/config/oauth.php

```
return array(

	/**
	 * One of 'StreamClient' or 'CurlClient'. Defaults to 'StreamClient' if not provided.
	 */
	'client' => 'StreamClient',

    'consumers' => array(
        'Facebook' => array(
            'client_id'     => '',
            'client_secret' => '',
            'scope' => array(),
        ),
    ),
);
```

License
-------

[](#license)

[MIT](license)

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~177 days

Total

2

Last Release

4480d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1410358?v=4)[Hannes Van De Vreken](/maintainers/hannesvdvreken)[@hannesvdvreken](https://github.com/hannesvdvreken)

---

Top Contributors

[![hannesvdvreken](https://avatars.githubusercontent.com/u/1410358?v=4)](https://github.com/hannesvdvreken "hannesvdvreken (35 commits)")[![jenssegers](https://avatars.githubusercontent.com/u/194377?v=4)](https://github.com/jenssegers "jenssegers (7 commits)")

---

Tags

phplaravelconfigwrapperoauthLusitanian

### Embed Badge

![Health badge](/badges/hannesvdvreken-oauth/health.svg)

```
[![Health](https://phpackages.com/badges/hannesvdvreken-oauth/health.svg)](https://phpackages.com/packages/hannesvdvreken-oauth)
```

###  Alternatives

[artdarek/oauth-4-laravel

OAuth Service Provider for Laravel 4

679512.0k](/packages/artdarek-oauth-4-laravel)[oriceon/oauth-5-laravel

OAuth Service Provider for Laravel 5

1751.5M](/packages/oriceon-oauth-5-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
