PHPackages                             hector-del-rio/yii2-attache - 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. hector-del-rio/yii2-attache

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

hector-del-rio/yii2-attache
===========================

Will ease up the pains of combining yii2-user and yii2-admin extensions.

1.1.8(10y ago)0123MITPHP

Since Aug 16Pushed 10y agoCompare

[ Source](https://github.com/hector-del-rio/yii2-attache)[ Packagist](https://packagist.org/packages/hector-del-rio/yii2-attache)[ RSS](/packages/hector-del-rio-yii2-attache/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (11)Used By (0)

yii2-attache
============

[](#yii2-attache)

Will ease up the pains of combining yii2-user and yii2-admin extensions.

Usage
-----

[](#usage)

Add in config/common.php (or config file that applies to web and console applications):

```
    'components' => [
        ...
        'authManager' => [
            'class' => 'yii\rbac\DbManager'
        ],
        ...
    ],
    ...
    'modules' => [
        ...
        'user' => [
            'class' => 'dektrium\user\Module',
            // yii2-user options
        ],
        'admin' => [
            'class' => 'mdm\admin\Module',
            // yii2-admin options
        ],
        ...
    ],
    ...
```

in config/web.php (or config file that applies ONLY to web application)

```
    'bootstrap' => [
        ...
        'hectordelrio\attache\Bootstrap'
        // or if you need to configure something:
        [
            'class' => 'hectordelrio\attache\Bootstrap',
            'option1' => 'value1',
            'option2' => 'value2',
            ...
        ]
        ...
    ],
    'as access' => [
        'class' => 'mdm\admin\components\AccessControl',
        // yii2-admin access behavior options
    ],
```

Then run:

```
    $ ./yii migrate --migrationPath="@app/vendor/hector-del-rio/yii2-attache/migrations"
```

Options
-------

[](#options)

- enableAdminsFromDatabase : defaults `true`. It will list all users with admin role to yii2-user's `admins` array.
- enableStoreProfileInSession : defaults `true`. Allows you to access user profile via session: `Yii::$app->session['profile']['name']`.
- db: defaults to `'db'`. If your database component is called differently, you can specify it here.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity69

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~17 days

Recently: every ~1 days

Total

10

Last Release

3764d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8473ad7854e30e2284cc8d3a8d374457c0f75c6dcb2d84ad115309746a38230d?d=identicon)[hector-del-rio](/maintainers/hector-del-rio)

---

Top Contributors

[![hector-del-rio](https://avatars.githubusercontent.com/u/9391691?v=4)](https://github.com/hector-del-rio "hector-del-rio (37 commits)")

---

Tags

authuserauthorizationpermissionyii2loginyii2-userroleyii2-admin

### Embed Badge

![Health badge](/badges/hector-del-rio-yii2-attache/health.svg)

```
[![Health](https://phpackages.com/badges/hector-del-rio-yii2-attache/health.svg)](https://phpackages.com/packages/hector-del-rio-yii2-attache)
```

###  Alternatives

[auth0/auth0-php

PHP SDK for Auth0 Authentication and Management APIs.

40820.2M68](/packages/auth0-auth0-php)[amnah/yii2-user

Yii 2 user authentication module

252225.7k3](/packages/amnah-yii2-user)[liujx/yii2-app-advanced

Yii2 ace-admin RBAC management background

1301.4k](/packages/liujx-yii2-app-advanced)[hydrat-agency/laravel-2fa

This package allow you to enable two-factor authentication in your Laravel applications. It stores tokens locally and notify users about their token via mail, SMS or any custom channel. Includes native conditionnal check to trigger or not 2FA, using known devices, IP addresses or IP locations.

1616.4k](/packages/hydrat-agency-laravel-2fa)

PHPackages © 2026

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