PHPackages                             weann/socialite - 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. weann/socialite

ActiveLibrary

weann/socialite
===============

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

v1.0(10y ago)301.4k7[1 issues](https://github.com/weann/socialite/issues)MITPHP

Since Jul 28Pushed 10y ago7 watchersCompare

[ Source](https://github.com/weann/socialite)[ Packagist](https://packagist.org/packages/weann/socialite)[ RSS](/packages/weann-socialite/feed)WikiDiscussions master Synced 1mo ago

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

Laravel Socialite
=================

[](#laravel-socialite)

Laravel 第三方登录，支持微信、QQ。

安装
--

[](#安装)

使用 composer 命令

```
composer require weann/socialite
```

注册服务提供者

```
Weann\Socialite\SocialiteServiceProvider::class,
```

注册 `Facade`

```
'Socialite' => Weann\Socialite\Facades\Socialite::class,
```

使用
--

[](#使用)

配置文件 `config/services.php`

```
'wechat' => [
    'client_id' => 'APP_ID',
    'client_secret' => 'APP_SECRET',
    'redirect' => 'CALLBACK_URL'
],
```

将用户重定向到授权页面。

```
Route::get('/', function () {
    return Socialite::driver('wechat')->redirect();
});
```

授权后的回调。

```
Route::get('callback', function () {
    $user = Socialite::driver('wechat')->user()
    dd($user);
});
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community13

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

3947d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d7f1936289f3d7e6eb5a90022e507ed820f2b7cdb269ba4ccd41d038be37c61d?d=identicon)[weann](/maintainers/weann)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/weann-socialite/health.svg)

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

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k21](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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