Vinelab / social-auth by Vinelab

1,308
10
4
Package Data
Maintainer Username: Vinelab
Maintainer Contact: abed.halawi@vinelab.com (Abed Halawi)
Package Create Date: 2013-07-26
Package Last Update: 2015-07-23
Language: PHP
License: MIT
Last Refreshed: 2024-04-22 03:09:37
Package Statistics
Total Downloads: 1,308
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 10
Total Watchers: 4
Total Forks: 4
Total Open Issues: 1

Build Status

Social Authentication - Laravel

Dependency Status

SensioLabsInsight

Installation

Using composer require the package vinelab/social-auth. Edit app.php and add 'Vinelab\Auth\AuthServiceProvider' to the 'providers' array. It will automatically alias itself as SocialAuth which is a Facade.

Configuration

Publish the configuration file using php artisan vendor:publish

Usage

<?php

// start the authentication process
$provider = 'facebook';

// inital authentication route
SocialAuth::authenticate($provider);

// callback route should do this
$profile = SocialAuth::profile($provider, Input::get());

$profile->provider(); // facebook
$profile->info(); // the facebook profile information