PHPackages                             ray-cheng/laravel-socialite-api - 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. ray-cheng/laravel-socialite-api

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

ray-cheng/laravel-socialite-api
===============================

package for laravel 5.1 retrieve user datas serve for restful api authentication.

1.5(10y ago)41751MITPHPPHP &gt;=5.5.0

Since Nov 16Pushed 9y ago1 watchersCompare

[ Source](https://github.com/akulubala/laravel-socialite-api)[ Packagist](https://packagist.org/packages/ray-cheng/laravel-socialite-api)[ RSS](/packages/ray-cheng-laravel-socialite-api/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (6)Dependencies (1)Versions (7)Used By (0)

\##Laravel Socialite api This package is aim to retrive user data by access token when use OAuth2 Login, base on Laravel Socialite, useful for client side OAuth login

---

\***notice**:

From laravel 5.2 you don't need this package anymore, because SocialiteProviders support get user by token from 2.0

---

\##Install composer require ray-cheng/laravel-socialite-api

open config/app.php add

```
LaravelSocialiteApi\SocialiteApiServiceProvider::class

```

to 'providers' array

check installed
---------------

[](#check-installed)

php artisan list

\##commands

```
    laravel-socialite-api:clear  providerName
    laravel-socialite-api:make   providerName

```

this will create a new folder 'Services' under app(or your base namespace folder)

\*\* providerName must follow  principle \*\*

\##add event handler and listener to App\\Providers\\EventServiceProvider $listen property

```
    'SocialiteProviders\Manager\SocialiteWasCalled' => [
        'App\LaravelSocialiteApi\ExtendSocialite\Weibo@handle',
        'App\LaravelSocialiteApi\ExtendSocialite\Weixin@handle',
    ]

```

test
----

[](#test)

```
    $userInfo = Socialite::with('weibo')->stateless->user($accessToken);
    some oauth server like weixin need both $token and  $openid to get userinfos, so we need pass openid also.
    $userInfo = Socialite::with('weixin')->stateless->user($accessToken, $openId);

```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity62

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

Every ~10 days

Total

6

Last Release

3828d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/54840818?v=4)[Ray-Cheng](/maintainers/Ray-Cheng)[@ray-cheng](https://github.com/ray-cheng)

---

Top Contributors

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

---

Tags

apilaravelAuthenticationoauth2restfulsocialete

### Embed Badge

![Health badge](/badges/ray-cheng-laravel-socialite-api/health.svg)

```
[![Health](https://phpackages.com/badges/ray-cheng-laravel-socialite-api/health.svg)](https://phpackages.com/packages/ray-cheng-laravel-socialite-api)
```

###  Alternatives

[hasinhayder/tyro

Tyro - The ultimate Authentication, Authorization, and Role &amp; Privilege Management solution for Laravel 12 &amp; 13

6783.6k5](/packages/hasinhayder-tyro)

PHPackages © 2026

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