attractgroup/social-auther

There is no license information available for the latest version (dev-master) of this package.

Auth in social

dev-master 2016-07-25 14:19 UTC

This package is not auto-updated.

Last update: 2024-09-28 18:31:55 UTC


README

#using

$redirect_uri = 'http://website.com/verity'; $auther = new SocialAuther(['vk', 'facebook'], $redirect_uri);

//Auth links
$links = $auther->getAuthUrls();

//If isset $_GET['code']
if ($auther->authenticate()) {
$data = [
'token' => $token,
'name' => $auther->getName(),
'email' => $auther->getEmail(),
];
}