PHPackages                             pa3py6aka/yii2-advanced-optimized - 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. pa3py6aka/yii2-advanced-optimized

ActiveProject[Framework](/categories/framework)

pa3py6aka/yii2-advanced-optimized
=================================

Yii2 optimized template based on advanced template

1.0.4(7y ago)02[2 PRs](https://github.com/pa3py6aka/yii2-advanced-optimized/pulls)BSD-3-ClausePHP &gt;=7.1

Since Jun 10Compare

[ Source](https://github.com/pa3py6aka/yii2-advanced-optimized)[ Packagist](https://packagist.org/packages/pa3py6aka/yii2-advanced-optimized)[ Docs](http://yiiframework.com)[ RSS](/packages/pa3py6aka-yii2-advanced-optimized/feed)WikiDiscussions Synced 2d ago

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

 [ ![](https://avatars0.githubusercontent.com/u/993323) ](https://github.com/yiisoft)

Yii 2 Advanced and Slightly Optimized Template
==============================================

[](#yii-2-advanced-and-slightly-optimized-template)

[![Latest Stable Version](https://camo.githubusercontent.com/141f9238bee43817ba7fc5b413beb619907ece58efdac60e22c7f12111a1ab05/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706133707936616b612f796969322d616476616e6365642d6f7074696d697a65642e737667)](https://packagist.org/packages/pa3py6aka/yii2-advanced-optimized)[![Total Downloads](https://camo.githubusercontent.com/8295bb4a638f02fc93f76b9ef323aeab6f849dffd63bc4c60dd705b13cbb0a7a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f706133707936616b612f796969322d616476616e6365642d6f7074696d697a65642e737667)](https://packagist.org/packages/pa3py6aka/yii2-advanced-optimized)[![Build Status](https://camo.githubusercontent.com/2b12b14ab4ce218793b03a504c8c6157dd925e1f8a64374b200e6a70e87ce470/68747470733a2f2f7472617669732d63692e6f72672f706133707936616b612f796969322d616476616e6365642d6f7074696d697a65642e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/pa3py6aka/yii2-advanced-optimized)

Yii 2 Advanced Optimized Project Template is the fork of Yii2 Advanced template.

> Note: This is alpha version of template. **All contributings are welcome!**

### Whats new

[](#whats-new)

- Uses Bootstrap 4
- Authorization forms in modal blocks with ajax validation
- Authorization by social networks using `yiisoft/yii2-authclient`
- Default RBAC. Uses three roles - `user`, `moderator`, `admin`. User can manage his content, moderator can manage all users content, admin has moderators access. You can apply to admins more privileges. Manage it in `console/controllers/RbacController.php`. After changes, execute `php yii rbac/init` command in the terminal (of course you must be in project directory).
- [IDE autocompletion for custom components](https://github.com/samdark/yii2-cookbook/blob/master/book/ide-autocompletion.md#ide-autocompletion-for-custom-components). Not forget exclude or "Mark as Plain Text" vendor/yiisoft/yii2/Yii.php file.
- Added frontend and backend url manager components. And url rules moves in separates files.
- Tabler template for backend on Bootstrap 4 ([Tabler](https://github.com/tabler/tabler))
- And more

### Installation

[](#installation)

By Composer: ```
composer create-project --prefer-dist pa3py6aka/yii2-advanced-optimized my-new-application

```

The command installs the project in a directory named `my-new-application`. You can choose a different directory name if you want.

Open a console terminal, execute the `init` command and select `dev` as environment.

```
/path/to/php-bin/php /path/to/yii-application/init

```

Create a new database and adjust the `components['db']` configuration in `/path/to/yii-application/common/config/main-local.php` accordingly.

Open a console terminal, apply migrations with command `/path/to/php-bin/php /path/to/yii-application/yii migrate`.

Initialize RBAC:

```
/path/to/php-bin/php /path/to/yii-application/yii rbac/init

```

Create Administrator user: Sign up on frontend site, then go to console and assign `admin` role to created user:

```
/path/to/php-bin/php /path/to/yii-application/yii roles/assign

```

### Contributing

[](#contributing)

**All contributings are welcome!**

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity60

Established project with proven stability

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 ~0 days

Total

7

Last Release

2577d ago

Major Versions

0.2.1 → 1.0.02019-06-10

### Community

Maintainers

![](https://www.gravatar.com/avatar/7ee78ceb0ff26357aa649a02eb7ef5983758c7df4ee2ec51f455d6da5e46fe8a?d=identicon)[pa3py6aka](/maintainers/pa3py6aka)

---

Tags

yii2bootstrap 4yii2 advancedyii2 templateyii2 bootstrap 4Yii2-advanced-optimized

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pa3py6aka-yii2-advanced-optimized/health.svg)

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

###  Alternatives

[yii2-starter-kit/yii2-starter-kit

Yii2 Starter Kit Application Template

1.4k6.6k](/packages/yii2-starter-kit-yii2-starter-kit)

PHPackages © 2026

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