PHPackages                             dezmont765/yii2-rbac-advanced-template - 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. [Framework](/categories/framework)
4. /
5. dezmont765/yii2-rbac-advanced-template

ActiveProject[Framework](/categories/framework)

dezmont765/yii2-rbac-advanced-template
======================================

Yii 2 Advanced Application Template With Rbac

0.0.7(10y ago)43474[1 issues](https://github.com/DezMonT765/yii2-advanced-template-rbac/issues)BSD-3-ClausePHPPHP &gt;=5.4.0

Since Apr 3Pushed 9y ago4 watchersCompare

[ Source](https://github.com/DezMonT765/yii2-advanced-template-rbac)[ Packagist](https://packagist.org/packages/dezmont765/yii2-rbac-advanced-template)[ Docs](http://www.yiiframework.com/)[ RSS](/packages/dezmont765-yii2-rbac-advanced-template/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (10)Versions (8)Used By (0)

Yii 2 Advanced Application Template With RBAC
=============================================

[](#yii-2-advanced-application-template-with-rbac)

yii2-advanced-template-rbac is based on yii2-app-advanced created by yii2 core developers. There are several upgrades made to this template.

The template includes three tiers: front end, back end, and console, each of which is a separate Yii application.

The template is designed to work in a team development environment. It supports deploying the application in different environments.

Also it includes nice user management system in backend, and custom layout system.

DIRECTORY STRUCTURE
-------------------

[](#directory-structure)

```
common
    config/              contains shared configurations
    mail/                contains view files for e-mails
    models/              contains model classes used in both backend and frontend
console
    config/              contains console configurations
    controllers/         contains console controllers (commands)
    migrations/          contains database migrations
    models/              contains console-specific model classes
    runtime/             contains files generated during runtime
backend
    assets/              contains application assets such as JavaScript and CSS
    config/              contains backend configurations
    controllers/         contains Web controller classes
    models/              contains backend-specific model classes
    runtime/             contains files generated during runtime
    views/               contains view files for the Web application
    web/                 contains the entry script and Web resources
frontend
    assets/              contains application assets such as JavaScript and CSS
    config/              contains frontend configurations
    controllers/         contains Web controller classes
    models/              contains frontend-specific model classes
    runtime/             contains files generated during runtime
    views/               contains view files for the Web application
    web/                 contains the entry script and Web resources
    widgets/             contains frontend widgets
vendor/                  contains dependent 3rd-party packages
environments/            contains environment-based overrides
tests                    contains various tests for the advanced application
    codeception/         contains tests developed with Codeception PHP Testing Framework

```

REQUIREMENTS
------------

[](#requirements)

The minimum requirement by this application template that your Web server supports PHP 5.4.0.

INSTALLATION
------------

[](#installation)

### Install via Composer

[](#install-via-composer)

If you do not have [Composer](http://getcomposer.org/), you may install it by following the instructions at [getcomposer.org](http://getcomposer.org/doc/00-intro.md#installation-nix).

You can then install the application using the following command:

```
php composer.phar global require "fxp/composer-asset-plugin:1.1.2" php
composer.phar create-project --prefer-dist dezmont765/yii2-rbac-advanced-template

```

GETTING STARTED
---------------

[](#getting-started)

After you install the application, you have to conduct the following steps to initialize the installed application. You only need to do these once for all.

1. Run command `php init` to initialize the application with a specific environment.
2. Create a new database and adjust the `components['db']` configuration in `common/config/common-local.php` accordingly.
3. Apply migrations with console command: `php yii migrate`. This will create tables needed for the application to work;
4. Run command `php yii rbac/init` to install necessary RBAC rules in DB
5. Set document roots of your Web server:

- for frontend `/path/to/yii-application/frontend/web/` and using the URL `http://frontend/`
- for backend `/path/to/yii-application/backend/web/` and using the URL `http://backend/`

If you want to use the application you'll need to register in the system using frontend user interface. You can register into the system using any valid email address and any password.

There are 3 types of users available for you in system: `super_admin`, `admin` and `user`. This types of users can be simply changed by editing the role field in user table, or via admin user interface in backend.

When you register the first user in the system, his role is set to `user` by default. Notice that `user` have no access to backend, so you'll have to change his role to `admin` or `super_admin` in the DB manually. Once, you enter the backend, you will see a simple but powerful user-management page where you can CRUD users, as you wish.Also there you can find Manage Email Templates page, where you can create your own email templates, and then simply use it, like static email templates:

```
Yii:$app->mailer->composer('your_email_template_name',$params) .

```

See "email-verification" template for example .

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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 ~27 days

Recently: every ~40 days

Total

7

Last Release

3898d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4923fc4bf4f486337a7a604850207b5f5f512218ac73e54bb796dc37195d1ef8?d=identicon)[dezmont765](/maintainers/dezmont765)

---

Top Contributors

[![ChubbyDuck](https://avatars.githubusercontent.com/u/23665385?v=4)](https://github.com/ChubbyDuck "ChubbyDuck (16 commits)")[![DezMonT765](https://avatars.githubusercontent.com/u/1221612?v=4)](https://github.com/DezMonT765 "DezMonT765 (4 commits)")

---

Tags

frameworkyii2advancedapplication template

### Embed Badge

![Health badge](/badges/dezmont765-yii2-rbac-advanced-template/health.svg)

```
[![Health](https://phpackages.com/badges/dezmont765-yii2-rbac-advanced-template/health.svg)](https://phpackages.com/packages/dezmont765-yii2-rbac-advanced-template)
```

###  Alternatives

[nenad/yii2-advanced-template

Improved Yii 2 Advanced Application Template By Nenad Zivkovic

9211.1k](/packages/nenad-yii2-advanced-template)[funson86/yii2-adminlte

Yii 2 Advanced Application Template with Adminlte Theme

1492.2k](/packages/funson86-yii2-adminlte)[kartik-v/yii2-app-practical

Yii 2 Practical Application Template

672.7k](/packages/kartik-v-yii2-app-practical)[kartik-v/yii2-app-practical-a

Yii 2 Practical A Application Template

363.7k](/packages/kartik-v-yii2-app-practical-a)[abhi1693/yii2-app-advanced-startup-kit

Yii 2 Practical Advanced Application Template (Startup Kit)

301.3k](/packages/abhi1693-yii2-app-advanced-startup-kit)

PHPackages © 2026

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