Download the PHP package deyin/dyoauth without Composer
On this page you can find all versions of the php package deyin/dyoauth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download deyin/dyoauth
More information about deyin/dyoauth
Files in deyin/dyoauth
Download deyin/dyoauth
More information about deyin/dyoauth
Files in deyin/dyoauth
Please rate this library. Is it a good library?
Informations about the package dyoauth
PHP 第三方登录授权 SDK
用于登录QQ,微信,微博
暂时只维护了QQ模块,后续需要添加新的模块
安装:
安装方式一:
composer require deyin/dyoauth
安装方式二:
在您的composer.json中加入配置:
{
"require": {
"deyin/dyoauth": "~2.0"
}
}
示例: 发起请求
/**
* 第三方登录入口
* */
public function actionThirdParty()
{
$type = $_GET['type'];
if ($type == 'qq') {
$appId = '';
$appKey = '';
$callbackUrl = '';
$qq = new qqOauth($appId, $appKey, $callbackUrl);
$url = $qq->getAuthorizeURL();
}
$this->redirect($url);
}
示例: 接受回调
$qq = new qqOauth();
$code = $_GET['code'];
$qq->getUserInfo($code);;
All versions of dyoauth with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4
The package deyin/dyoauth contains the following files
Loading the files please wait ....