Download the PHP package xbing2002/socialite without Composer
On this page you can find all versions of the php package xbing2002/socialite. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package socialite
Socialite
基于 overtrue/socialite改造的,适用于easyswoole的第三方登录组件,现已支持wechat,qq,weibo,github,facebook
依赖
安装
使用说明
authorize.php
:
callback.php
:
配置项
现在支持:
facebook
, github
, weibo
, qq
, wechat
.
每一个登录平台的配置都是一样的,只需要配置: client_id
, client_secret
, redirect
.
例子:
Scope
有些登录平台可以在跳转之前设置Scope:
WeChat scopes:
snsapi_base
,snsapi_userinfo
- 用于公众号登录.snsapi_login
- 用户web登录.
跳转链接
当然你也可以动态设置跳转链接:
自定义参数
如果存在一些自定义参数,请用with方法
User interface
Standard user api:
你可以通过数组方式获取用户属性:
或者通过对象方式获取:
你也可以直接获取各登录平台的原始返回数据
$user->getOriginal()
获取access token 对象
$user->getToken()
$user->getAccessToken()
$user['token']
可以通过access token 获取用户信息
License
MIT
All versions of socialite with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.1
easyswoole/http Version ^1.3
easyswoole/http-client Version ^1.3
easyswoole/cache Version ^1.1
easyswoole/http Version ^1.3
easyswoole/http-client Version ^1.3
easyswoole/cache Version ^1.1
The package xbing2002/socialite contains the following files
Loading the files please wait ....