attractgroup / social-auther
该包最新版本(dev-master)没有提供许可证信息。
社交认证
dev-master
2016-07-25 14:19 UTC
Requires
- laravel/framework: >=4.2.1
This package is not auto-updated.
Last update: 2024-09-14 18:20:25 UTC
README
#使用
$redirect_uri = 'http://website.com/verity'; $auther = new SocialAuther(['vk', 'facebook'], $redirect_uri);
//认证链接
$links = $auther->getAuthUrls();
//如果 isset $_GET['code']
if ($auther->authenticate()) {
$data = [
'token' => $token,
'name' => $auther->getName(),
'email' => $auther->getEmail(),
];
}