2017 © Pedro Peláez
 

library scn-social-auth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

image

socalnick/scn-social-auth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  • Sunday, December 18, 2016
  • by SocalNick
  • Repository
  • 44 Watchers
  • 217 Stars
  • 53,587 Installations
  • PHP
  • 7 Dependents
  • 0 Suggesters
  • 130 Forks
  • 4 Open issues
  • 70 Versions
  • 1 % Grown

The README.md

ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module., (*1)

Build Status Latest Stable Version Total Downloads Dependency Status, (*2)

Demo

Requirements

Features

  • Login with AOL [NO LONGER SUPPORTED]
  • Login with Facebook [COMPLETE]
  • Login with Foursquare [COMPLETE]
  • Login with Github [COMPLETE]
  • Login with BitBucket [COMPLETE]
  • Login with Google [COMPLETE]
  • Login with LinkedIn [COMPLETE]
  • Login with Live [INCOMPLETE]
  • Login with MySpace [INCOMPLETE]
  • Login with OpenID [INCOMPLETE]
  • Login with Twitter [COMPLETE]
  • Login with Yahoo! [COMPLETE]
  • Login with Tumblr [COMPLETE]
  • Login with Mail.Ru [COMPLETE]
  • Login with Odnoklassniki [COMPLETE]
  • Login with VKontakte [COMPLETE]
  • Login with Yandex [COMPLETE]
  • Login with Instagram [COMPLETE]

Installation

It is recommended to add this module to your Zend Framework 2 application using Composer. After cloning ZendSkeletonApplication, add "socalnick/scn-social-auth" to list of requirements, then run php composer.phar install/update. Your composer.json should look something like this:, (*3)

{
    "name": "zendframework/skeleton-application",
    "description": "Skeleton Application for ZF2",
    "license": "BSD-3-Clause",
    "keywords": [
        "framework",
        "zf2"
    ],
    "homepage": "http://framework.zend.com/",
    "require": {
        "php": ">=5.3.3",
        "zendframework/zendframework": "2.*",
        "socalnick/scn-social-auth": "1.*"
    }
}

Next add the required modules to config/application.config.php:, (*4)

<?php
return array(
    'modules' => array(
        'Application',
        'ScnSocialAuth',
        'ZfcBase',
        'ZfcUser',
    ),
    'module_listener_options' => array(
        'config_glob_paths'    => array(
            'config/autoload/{,*.}{global,local}.php',
        ),
        'module_paths' => array(
            './module',
            './vendor',
        ),
    ),
);

Import the schemas for ZfcUser (./vendor/zf-commons/zfc-user/data/schema.sql) and ScnSocialAuth (./vendor/socalnick/scn-social-auth/data/schema.sql)., (*5)

If you do not already have a valid Zend\Db\Adapter\Adapter in your service manager configuration, put the following in ./config/autoload/database.local.php:, (*6)

<?php

$dbParams = array(
    'database'  => 'changeme',
    'username'  => 'changeme',
    'password'  => 'changeme',
    'hostname'  => 'changeme',
);

return array(
    'service_manager' => array(
        'factories' => array(
            'Zend\Db\Adapter\Adapter' => function ($sm) use ($dbParams) {
                return new Zend\Db\Adapter\Adapter(array(
                    'driver'    => 'pdo',
                    'dsn'       => 'mysql:dbname='.$dbParams['database'].';host='.$dbParams['hostname'],
                    'database'  => $dbParams['database'],
                    'username'  => $dbParams['username'],
                    'password'  => $dbParams['password'],
                    'hostname'  => $dbParams['hostname'],
                ));
            },
        ),
    ),
);

If you do not already have a valid Zend\Session\SessionManager in your service manager configuration, put the following in ./config/autoload/session.local.php:, (*7)

<?php

return array(
    'service_manager' => array(
        'invokables' => array(
            'Zend\Session\SessionManager' => 'Zend\Session\SessionManager',
        ),
    ),
);

Options

Make sure to check the options available in ZfcUser: https://github.com/ZF-Commons/ZfcUser#options, (*8)

The ScnSocialAuth module has two files that allow you to configure supported providers. After installing ScnSocialAuth, copy ./vendor/socalnick/scn-social-auth/config/scn-social-auth.global.php.dist to ./config/autoload/scn-social-auth.global.php and change the values as desired. Also copy ./vendor/socalnick/scn-social-auth/config/scn-social-auth.local.php.dist to ./config/autoload/scn-social-auth.local.php and change the values as desired., (*9)

The Versions

10/10 2015
19/05 2015

1.17.2

1.17.2.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

zf2

20/04 2015

1.17.1

1.17.1.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

zf2

13/04 2015

1.17.0

1.17.0.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

zf2

10/03 2015

1.16.0

1.16.0.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

zf2

16/01 2015

1.15.2

1.15.2.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

zf2

23/12 2014

1.15.1

1.15.1.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

zf2

08/09 2014

1.15.0

1.15.0.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

zf2

08/09 2014

1.15.0-rc.2

1.15.0.0-RC2 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

zf2

07/09 2014

1.15.0-rc.1

1.15.0.0-RC1 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

zf2

06/06 2014

1.14.1

1.14.1.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

zf2

25/05 2014

1.14.0

1.14.0.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

zf2

09/03 2014

1.13.0

1.13.0.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

zf2

07/02 2014

1.12.1

1.12.1.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

The Development Requires

zf2

03/02 2014

dev-hotfix/132

dev-hotfix/132 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

The Development Requires

zf2

14/01 2014

1.12.0

1.12.0.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

The Development Requires

zf2

10/01 2014

dev-hotfix/dedicated-auth-adapter-chain

dev-hotfix/dedicated-auth-adapter-chain https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

The Development Requires

zf2

02/12 2013

1.11.3

1.11.3.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

The Development Requires

zf2

02/12 2013

1.11.2

1.11.2.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

The Development Requires

zf2

02/12 2013

1.11.1

1.11.1.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

The Development Requires

zf2

26/11 2013

1.11.0

1.11.0.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

The Development Requires

zf2

26/11 2013

dev-hotfix/zfc-user

dev-hotfix/zfc-user https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

The Development Requires

zf2

23/11 2013

dev-hotfix/hybridauth

dev-hotfix/hybridauth https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

The Development Requires

zf2

29/07 2013

1.10.0

1.10.0.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

The Development Requires

zf2

02/04 2013

1.7.7

1.7.7.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

The Development Requires

zf2

02/04 2013

1.8.4

1.8.4.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

The Development Requires

zf2

02/04 2013

1.9.4

1.9.4.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

The Development Requires

zf2

01/04 2013

1.8.3

1.8.3.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

The Development Requires

zf2

01/04 2013

1.7.6

1.7.6.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

The Development Requires

zf2

01/04 2013

1.9.3

1.9.3.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

The Development Requires

zf2

13/03 2013

1.7.5

1.7.5.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

zf2

13/03 2013

1.8.2

1.8.2.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

zf2

13/03 2013

1.9.2

1.9.2.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

zf2

11/03 2013

1.7.4

1.7.4.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

zf2

11/03 2013

1.8.1

1.8.1.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

zf2

11/03 2013

1.9.1

1.9.1.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

zf2

04/03 2013

1.9.0

1.9.0.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

zf2

27/02 2013

1.6.4

1.6.4.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

zf2

27/02 2013

1.8.0

1.8.0.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

zf2

27/02 2013

1.7.3

1.7.3.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

zf2

19/02 2013

1.5.1

1.5.1.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

zf2

19/02 2013

1.6.3

1.6.3.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

zf2

19/02 2013

1.7.2

1.7.2.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

zf2

19/02 2013

1.7.1

1.7.1.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

zf2

19/02 2013

1.6.2

1.6.2.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

zf2

15/02 2013

1.7.0

1.7.0.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

zf2

15/02 2013

1.6.1

1.6.1.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

zf2

13/02 2013

dev-hotfix-provider-plugin

dev-hotfix-provider-plugin https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

zf2

07/02 2013

1.6.0

1.6.0.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

zf2

21/12 2012

1.5.0

1.5.0.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

zf2

20/12 2012

1.4.0

1.4.0.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

zf2

17/12 2012

1.3.2

1.3.2.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

zf2

13/12 2012

1.3.1

1.3.1.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

zf2

12/12 2012

1.3.0

1.3.0.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

zf2

26/11 2012

1.2.0

1.2.0.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

zf2

20/11 2012

1.1.3

1.1.3.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

zf2

09/11 2012

1.1.2

1.1.2.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

zf2

09/11 2012

1.1.1

1.1.1.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

zf2

18/10 2012

1.1.0

1.1.0.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

zf2

08/10 2012

1.0.3

1.0.3.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

zf2

05/10 2012

1.0.2

1.0.2.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

zf2

01/10 2012

1.0.1

1.0.1.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

zf2

09/08 2012

1.0.0

1.0.0.0 https://github.com/SocalNick/ScnSocialAuth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

  Sources   Download

The Requires

 

zf2