PHPackages                             ledsinclouds/leds-oauth2 - 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. ledsinclouds/leds-oauth2

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

ledsinclouds/leds-oauth2
========================

OAuth2 module using http://oauth2.thephpleague.com/ library and Doctine2 for database setup for login with a social account.

06PHP

Since Nov 10Pushed 10y ago1 watchersCompare

[ Source](https://github.com/ledsinclouds/LedsOAuth2)[ Packagist](https://packagist.org/packages/ledsinclouds/leds-oauth2)[ RSS](/packages/ledsinclouds-leds-oauth2/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

ZF2 OAuth2 Connect Module
=========================

[](#zf2-oauth2-connect-module)

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

[](#introduction)

This is a social login module using  library and Doctine2 for database setup.

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

[](#installation)

Using Composer (recommended)
----------------------------

[](#using-composer-recommended)

The recommended way to get a working copy of this project is to clone the repository and use `composer` to install dependencies:

```
curl -s https://getcomposer.org/installer | php --

```

You would then invoke `composer` to install dependencies. Add to your composer.json

```
"ledsinclouds/leds-oauth2": "dev-master"

```

Configuration
-------------

[](#configuration)

Once module installed, you could declare the module into your "config/application.config.php" by adding "LedsOAuth2".

```
    'Application',
	'AkrabatSession',
    'DoctrineModule',
	'DoctrineORMModule',
	'AssetManager',
    'LedsOAuth2',

```

Copy/Paste the configuration file and change configuration options according to your social accounts. Note: You must create applications for that...

```
cp vendor/ledsinclouds/leds-oauth2/config/oaut.local.php.dist config/autoload/oauth.local.php

```

This module is shipped with 2 ViewHelpers - cssWidget(Account detal view when logged) &amp; oauthWidget(Social Icons for login)

```

```

Setup Session Handling
----------------------

[](#setup-session-handling)

Create a directory "session" in data directory with read/write access to your web server

```
$ mkdir www/{approot}/data/session
$ chown -R apache:apache www/{approot}/data/session
$ chmod -R 0770 apache:apache www/{approot}/data/session

return array(
	'session' => array(
		'name' => 'auth',
		'save_path' => __DIR__ . '/../../../data/session'
	),
);

```

Database Setup
--------------

[](#database-setup)

copy "doctrine.local.php.dist" to "config/autoload/doctrine.local.php"

```
./vendor/bin/doctrine-module orm:validate-schema
./vendor/bin/doctrine-module orm:schema-tool:update --force

```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/1f36e5b56dfb680ea2b12f3289e2f027fe877516a41ac2921acb1685cbfbd702?d=identicon)[ledsinclouds](/maintainers/ledsinclouds)

---

Top Contributors

[![ledsinclouds](https://avatars.githubusercontent.com/u/2896188?v=4)](https://github.com/ledsinclouds "ledsinclouds (2 commits)")

### Embed Badge

![Health badge](/badges/ledsinclouds-leds-oauth2/health.svg)

```
[![Health](https://phpackages.com/badges/ledsinclouds-leds-oauth2/health.svg)](https://phpackages.com/packages/ledsinclouds-leds-oauth2)
```

###  Alternatives

[vitalybaev/laravel5-dkim

Laravel 5/6 package for signing outgoing messages with DKIM.

3163.1k](/packages/vitalybaev-laravel5-dkim)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
