PHPackages                             masoud91/yii2-idcoauth - 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. masoud91/yii2-idcoauth

ActiveYii2-extension[Authentication &amp; Authorization](/categories/authentication)

masoud91/yii2-idcoauth
======================

idco ouath2 extension for Yii2

31.5kPHP

Since Oct 18Pushed 5y ago2 watchersCompare

[ Source](https://github.com/masoud91/yii2-oauth2)[ Packagist](https://packagist.org/packages/masoud91/yii2-idcoauth)[ RSS](/packages/masoud91-yii2-idcoauth/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 ouath2
===========

[](#yii2-ouath2)

ouath2 extension for Yii2

Requirements
------------

[](#requirements)

The extension needs following extensions to work with, you don't need install them manually

[Yii2-oauth-filsh](https://github.com/Filsh/yii2-oauth2-server)

`common\idco\mongodb\ActiveRecord`

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist infinitydesign/yii2-idcoauth "*"

```

or add

```
"infinitydesign/yii2-idcoauth": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

run the following migrations in order to create schemas and intial documents ( only supprot mongodb by now )

```
./yii mongodb-migrate --migrationPath=@vendor/infinitydesign/yii2-idcoauth/migrations

```

add the following config under the modules section:

```
'oauth2' => [
    'class' => 'filsh\yii2\oauth2server\Module',
    'tokenParamName' => 'accessToken',
    'tokenAccessLifetime' => 3600 * 24,
    'storageMap' => [
        'user_credentials' => 'infinitydesign\idcoauth\OauthUser',
        'client' => 'infinitydesign\idcoauth\OauthClients',
        'access_token' => 'infinitydesign\idcoauth\OauthAccessTokens',
        'refresh_token' => 'infinitydesign\idcoauth\OauthRefreshTokens',
        'authorization_code' => 'infinitydesign\idcoauth\OauthAuthorizationCodes',
        'client_credentials' => 'infinitydesign\idcoauth\OauthClients',
        'scope' => 'infinitydesign\idcoauth\OauthScopes',
    ],
    'grantTypes' => [
        'user_credentials' => [
            'class' => 'infinitydesign\idcoauth\UserCredentials',
            'allow_public_clients' => false
        ],
        'refresh_token' => [
            'class' => 'infinitydesign\idcoauth\RefreshToken',
            'always_issue_new_refresh_token' => true
        ],
        'authorization_code' => [
            'class' => 'infinitydesign\idcoauth\AuthorizationCode',
        ],
    ],
    'components' => [
        'request' => function () {
            return \filsh\yii2\oauth2server\Request::createFromGlobals();
        },
        'response' => [
            'class' => \filsh\yii2\oauth2server\Response::class,
        ],
    ],
]
```

```

```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 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://avatars.githubusercontent.com/u/19157968?v=4)[masoud92](/maintainers/masoud92)[@masoud92](https://github.com/masoud92)

---

Top Contributors

[![masoud91](https://avatars.githubusercontent.com/u/3854326?v=4)](https://github.com/masoud91 "masoud91 (37 commits)")

### Embed Badge

![Health badge](/badges/masoud91-yii2-idcoauth/health.svg)

```
[![Health](https://phpackages.com/badges/masoud91-yii2-idcoauth/health.svg)](https://phpackages.com/packages/masoud91-yii2-idcoauth)
```

###  Alternatives

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

761.3M17](/packages/kartik-v-yii2-password)[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)
