PHPackages                             yunwuxin/think-social - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. yunwuxin/think-social

ActiveThink-extend[Utility &amp; Helpers](/categories/utility)

yunwuxin/think-social
=====================

ThinkPHP6 Social SDK

v4.0.1(1y ago)6244716[2 issues](https://github.com/yunwuxin/think-social/issues)Apache-2.0PHPCI failing

Since Nov 25Pushed 4mo ago7 watchersCompare

[ Source](https://github.com/yunwuxin/think-social)[ Packagist](https://packagist.org/packages/yunwuxin/think-social)[ RSS](/packages/yunwuxin-think-social/feed)WikiDiscussions 4.x Synced today

READMEChangelog (10)Dependencies (2)Versions (18)Used By (0)

ThinkPHP6 社会化登录组件
=================

[](#thinkphp6-社会化登录组件)

安装
--

[](#安装)

```
composer require yunwuxin/think-social

```

配置
--

[](#配置)

目前支持4个平台的：`qq`,`weibo`,`github`,`wechat`

### 配置示例

[](#配置示例)

```
...
  'weibo' => [
    'client_id'     => 'your-app-id',
    'client_secret' => 'your-app-secret',
  ],
...

```

使用
--

[](#使用)

### 路由

[](#路由)

```
Route::get('auth/:channel/callback', 'Auth/handleSocialCallback');
Route::get('auth/:channel', 'Auth/redirectToSocial');

```

### 控制器

[](#控制器)

```
