PHPackages                             fat2fast/yii2-admin - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. fat2fast/yii2-admin

ActiveYii2-extension[HTTP &amp; Networking](/categories/http)

fat2fast/yii2-admin
===================

RBAC Auth manager for Yii2

3.2.3(2y ago)0312BSD-3-ClausePHP

Since Aug 23Pushed 2y agoCompare

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

READMEChangelog (5)Dependencies (3)Versions (15)Used By (0)

RBAC Manager for Yii 2
======================

[](#rbac-manager-for-yii-2)

> **Warning: This version was no longer maintained. Please use version 2.x.**
>
> `composer require fat2fast/yii2-admin "~3.2"`

Documentation
-------------

[](#documentation)

- [Change Log](CHANGELOG.md).
- [Authorization Guide](http://www.yiiframework.com/doc-2.0/guide-security-authorization.html). Important, read this first before you continue.
- [Basic Usage](docs/guide/basic-usage.md).
- [Using Menu](docs/guide/using-menu.md).
- [Api](http://mdmsoft.github.io/yii2-admin/index.html)

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

[](#installation)

### Install With Composer

[](#install-with-composer)

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

Either run

```
php composer.phar require fat2fast/yii2-admin "~3.2"

```

to the require section of your `composer.json` file and execute `php composer.phar update`.

### Install From the Archive

[](#install-from-the-archive)

Download the latest release from here [releases](https://github.com/fat2fast/yii2-admin/releases), then extract it to your project. In your application config, add the path alias for this extension.

```
return [
    ...
    'aliases' => [
        '@fat2fast/admin' => 'path/to/your/extracted',
        // for example: '@mdm/admin' => '@app/extensions/mdm/yii2-admin-3.0.0',
        ...
    ]
];
```

Usage
-----

[](#usage)

Once the extension is installed, simply modify your application configuration as follows:

```
return [
    'bootstrap' => [
        'admin', // required
        ...
    ],
    'modules' => [
        'admin' => [
            'class' => 'fat2fast\admin\Module',
            ...
        ]
        ...
    ],
    ...
    'components' => [
        ...
        'authManager' => [
            'class' => 'yii\rbac\PhpManager', // or use 'yii\rbac\DbManager'
        ]
    ],
    'as access' => [
        'class' => 'fat2fast\admin\classes\AccessControl',
        'allowActions' => [
            'site/*',
            'admin/*',
            'some-controller/some-action',
            // The actions listed here will be allowed to everyone including guests.
            // So, 'admin/*' should not appear here in the production, of course.
            // But in the earlier stages of your development, you may probably want to
            // add a lot of actions here until you finally completed setting up rbac,
            // otherwise you may not even take a first step.
        ]
    ],
];
```

See [Yii RBAC](http://www.yiiframework.com/doc-2.0/guide-security-authorization.html#role-based-access-control-rbac) for more detail. You can then access Auth manager through the following URL:

```
http://localhost/path/to/index.php/admin
http://localhost/path/to/index.php/admin#/route
http://localhost/path/to/index.php/admin#/permission
http://localhost/path/to/index.php/admin#/menu
http://localhost/path/to/index.php/admin#/role
http://localhost/path/to/index.php/admin#/assignment

```

To use the menu manager (optional), execute the migration here:

```
yii migrate --migrationPath=@fat2fast/admin/migrations

```

If you use database (class 'yii\\rbac\\DbManager') to save rbac data, execute the migration here:

```
yii migrate --migrationPath=@yii/rbac/migrations

```

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 81.3% 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 ~293 days

Recently: every ~0 days

Total

12

Last Release

730d ago

Major Versions

2.13.0 → 3.2.12024-06-22

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/171465424?v=4)[Fat Too Fast](/maintainers/fat2fast)[@fat2fast](https://github.com/fat2fast)

---

Top Contributors

[![mdmunir](https://avatars.githubusercontent.com/u/5828252?v=4)](https://github.com/mdmunir "mdmunir (213 commits)")[![sosojni](https://avatars.githubusercontent.com/u/3853867?v=4)](https://github.com/sosojni "sosojni (9 commits)")[![hscstudio](https://avatars.githubusercontent.com/u/2976897?v=4)](https://github.com/hscstudio "hscstudio (6 commits)")[![fat2fast](https://avatars.githubusercontent.com/u/171465424?v=4)](https://github.com/fat2fast "fat2fast (4 commits)")[![iforme](https://avatars.githubusercontent.com/u/5034903?v=4)](https://github.com/iforme "iforme (4 commits)")[![softark](https://avatars.githubusercontent.com/u/342857?v=4)](https://github.com/softark "softark (3 commits)")[![kongoon](https://avatars.githubusercontent.com/u/186737?v=4)](https://github.com/kongoon "kongoon (3 commits)")[![realtebo](https://avatars.githubusercontent.com/u/1268699?v=4)](https://github.com/realtebo "realtebo (2 commits)")[![engineergym](https://avatars.githubusercontent.com/u/216024296?v=4)](https://github.com/engineergym "engineergym (2 commits)")[![marsuboss](https://avatars.githubusercontent.com/u/5856?v=4)](https://github.com/marsuboss "marsuboss (2 commits)")[![pgyf](https://avatars.githubusercontent.com/u/3365344?v=4)](https://github.com/pgyf "pgyf (1 commits)")[![qwekaa](https://avatars.githubusercontent.com/u/4110449?v=4)](https://github.com/qwekaa "qwekaa (1 commits)")[![sihar](https://avatars.githubusercontent.com/u/4416176?v=4)](https://github.com/sihar "sihar (1 commits)")[![ASlatius](https://avatars.githubusercontent.com/u/5786593?v=4)](https://github.com/ASlatius "ASlatius (1 commits)")[![wilwade](https://avatars.githubusercontent.com/u/1252199?v=4)](https://github.com/wilwade "wilwade (1 commits)")[![camohob](https://avatars.githubusercontent.com/u/7923965?v=4)](https://github.com/camohob "camohob (1 commits)")[![derekisbusy](https://avatars.githubusercontent.com/u/5118781?v=4)](https://github.com/derekisbusy "derekisbusy (1 commits)")[![fsantana](https://avatars.githubusercontent.com/u/10381009?v=4)](https://github.com/fsantana "fsantana (1 commits)")[![ipanardian](https://avatars.githubusercontent.com/u/415225?v=4)](https://github.com/ipanardian "ipanardian (1 commits)")[![itzen](https://avatars.githubusercontent.com/u/8614041?v=4)](https://github.com/itzen "itzen (1 commits)")

---

Tags

restauthrbacyiiadminangularjsfat2fastf2f

### Embed Badge

![Health badge](/badges/fat2fast-yii2-admin/health.svg)

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

###  Alternatives

[mdmsoft/yii2-admin

RBAC Auth manager for Yii2

1.1k1.5M37](/packages/mdmsoft-yii2-admin)[izyue/yii2-admin

RBAC Auth manager for Yii2

401.8k1](/packages/izyue-yii2-admin)

PHPackages © 2026

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