attractgroup/social-auther

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

Auth in social

Installs: 109

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/attractgroup/social-auther

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

This package is not auto-updated.

Last update: 2025-10-12 00:20:34 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(),
];
}