PHPackages                             lorenzoferrarajr/lfj-opauth - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. lorenzoferrarajr/lfj-opauth

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

lorenzoferrarajr/lfj-opauth
===========================

LfjOpauth is a Zend Framework 2 module that enables support for many authentication providers through the Opauth framework.

v0.2.0(11y ago)2915.4k6[1 issues](https://github.com/lorenzoferrarajr/LfjOpauth/issues)MITPHPPHP &gt;=5.3

Since Jan 27Pushed 9y ago4 watchersCompare

[ Source](https://github.com/lorenzoferrarajr/LfjOpauth)[ Packagist](https://packagist.org/packages/lorenzoferrarajr/lfj-opauth)[ Docs](https://github.com/lorenzoferrarajr/LfjOpauth)[ RSS](/packages/lorenzoferrarajr-lfj-opauth/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

LfjOpauth
=========

[](#lfjopauth)

Created By Lorenzo Ferrara Junior

Introduction
------------

[](#introduction)

**LfjOpauth** is a Zend Framework 2 module that enables support for many authentication providers through the [Opauth](http://opauth.org/) framework.

Installation
------------

[](#installation)

To use the module you need to:

- Install the LfjOpauth module using using `composer`
- Install at least one of the [Opauth](http://opauth.org/) strategies
- Enable the LfjOpauth module

To install the LfjOpauth module, you need to add `"lorenzoferrarajr/lfj-opauth": "dev-master"` to the `require` list of your project's `composer.json` file.

To install the [Opauth](https://github.com/opauth) strategy, you need find the required package on [Packagist](https://packagist.org/search/?q=opauth) or on [GitHub](https://github.com/opauth) and add it to the `require` list of your project's `composer.json` file.

This is an example of a modified `composer.json` which includes the LfjOpauth module and the Facebook strategy:

```
{
    "name": "zendframework/skeleton-application",
    "description": "Skeleton Application for ZF2",
    "require": {
        "php": ">=5.3.3",
        "zendframework/zendframework": ">2.2.0rc1",
        "lorenzoferrarajr/lfj-opauth": "dev-master",
        "opauth/facebook": "0.2.1"
   }
}
```

The example includes the installation of the Facebook Opauth strategy. More info on Opauth strategies can be found on GitHub:

- [opauth-facebook](https://github.com/opauth/facebook)
- [opauth-twitter](https://github.com/opauth/twitter)
- [more of them...](https://github.com/opauth)

Installing LfjOpauth using `composer`, the Opauth dependecy is automatically resolved, but you still must provide at least one strategy.

Next, you need to add `LfjOpauth` to the `modules` list in the `config/application.config.php` file of your Zend Framework 2 project.

This is an example:

```
