PHPackages                             changyy/laravel-oauth-library - 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. changyy/laravel-oauth-library

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

changyy/laravel-oauth-library
=============================

Simple Facebook/Google OAuth Library for Laravel framework

1.0(8y ago)020MITPHP

Since May 20Pushed 8y ago1 watchersCompare

[ Source](https://github.com/changyy/laravel-oauth-library)[ Packagist](https://packagist.org/packages/changyy/laravel-oauth-library)[ Docs](https://github.com/changyy/laravel-oauth-library)[ RSS](/packages/changyy-laravel-oauth-library/feed)WikiDiscussions master Synced 2d ago

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

laravel-oauth-library
=====================

[](#laravel-oauth-library)

An Simple Facebook/Google OAuth Client for Laravel Framework

Laravel Usage
=============

[](#laravel-usage)

```
$ php composer.phar require changyy/laravel-oauth-library
$ php artisan make:controller OAuthConnect
$ vim app/Http/Controllers/OAuthConnect.php
namespace App\Http\Controllers;

use Illuminate\Http\Request;

class OAuthConnect extends \org\changyy\OAuth\Controller\Connect
{
    public function handleFacebookConnected($oauth_ret = []) {
        print_r($oauth_ret);
    }
    public function initFacebook() {
        if(!session_id())
            session_start();
        parent::initFacebook();
    }
    public function handleGoogleConnected($oauth_ret = []) {
        print_r($oauth_ret);
    }
}

$ vim routes/web.php
Route::get('/connect/facebook', 'OAuthConnect@connectFacebook');
Route::get('/connect/google', 'OAuthConnect@connectGoogle');

$ vim config/oauth.php
return [
    'methods' => [
        'facebook' => [
            'tag' => 'facebook',
            'default_graph_version' => 'v2.9',
            'app_id' => 'xxxxx',
            'secret_key' => 'xxxxxx',
            'scope' => [ 'email' ],
            'done_handler' => '/',
            'error_handler' => '/connect/error',
        ],
        'google' => [
            'tag' => 'google',
            'client_id' => 'xxxxx',
            'client_secret' => 'xxxxx',
            'scope' => [ 'email', 'profile' ],
            'done_handler' => '/',
            'error_handler' => '/connect/error',
        ],
];

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

3281d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/666b0170a12724f2787beb37e45159af8ea7e793f6281c8aa098c22c8ae33c9e?d=identicon)[changyy](/maintainers/changyy)

---

Top Contributors

[![changyy](https://avatars.githubusercontent.com/u/376594?v=4)](https://github.com/changyy "changyy (4 commits)")

---

Tags

sdkfacebookgoogleoauth

### Embed Badge

![Health badge](/badges/changyy-laravel-oauth-library/health.svg)

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

###  Alternatives

[hwi/oauth-bundle

Support for authenticating users using both OAuth1.0a and OAuth2 in Symfony.

2.4k21.5M69](/packages/hwi-oauth-bundle)[opauth/opauth

Multi-provider authentication framework for PHP

1.6k783.4k58](/packages/opauth-opauth)[socialconnect/auth

Social Connect Auth Component

568845.4k5](/packages/socialconnect-auth)[fof/oauth

Allow users to log in with GitHub, Facebook, Google, Discord, GitLab, LinkedIn, and more!

50118.7k41](/packages/fof-oauth)[and/oauth

Simple and amazing OAuth library with many providers. Just try it out!

4645.2k2](/packages/and-oauth)[lorenzoferrarajr/lfj-opauth

LfjOpauth is a Zend Framework 2 module that enables support for many authentication providers through the Opauth framework.

2915.4k](/packages/lorenzoferrarajr-lfj-opauth)

PHPackages © 2026

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