PHPackages                             akiraz2/yii2-app - 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. akiraz2/yii2-app

ActiveProject[Framework](/categories/framework)

akiraz2/yii2-app
================

Yii2 my advanced project template (Redis-cache, DB-queue, gentelella-admin, dektrium-user, DB-log)

1.4.3(5y ago)5090317[1 issues](https://github.com/akiraz2/yii2-app/issues)BSD-3-ClausePHPPHP &gt;=7.0.0

Since Apr 22Pushed 5y ago12 watchersCompare

[ Source](https://github.com/akiraz2/yii2-app)[ Packagist](https://packagist.org/packages/akiraz2/yii2-app)[ Docs](https://github.com/akiraz2/yii2-app)[ RSS](/packages/akiraz2-yii2-app/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (17)Versions (17)Used By (0)

Yii2 Fast Simple Advanced App [![Packagist Version](https://camo.githubusercontent.com/20c394f00515fc878c0d9fce5657ab3c2aaa4ab686d3a53dbffdfb7608c6c44d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616b6972617a322f796969322d6170702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/akiraz2/yii2-app) [![Total Downloads](https://camo.githubusercontent.com/d753773387f669cd4ec8442efe1eca6a7fd0e09a6e3d9d376729315611f43861/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616b6972617a322f796969322d6170702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/akiraz2/yii2-app)
=============================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#yii2-fast-simple-advanced-app--)

Yii2-app is Fast and Ready-to-production advanced project template.

Dockerized, for development (mysql, nginx, php-fpm)

Please, [enable php intl extension](http://php.net/manual/en/intl.installation.php) for better work.

Default, the template includes three tiers: `frontend`, `backend`, and `console`, each of which is a separate Yii application.

> **NOTE:** Template is in initial development. Anything may change at any time.

Features
--------

[](#features)

- Gentelella Admin template is beautiful and simple bootstrap, compatible with yii2 assets: [yiister/yii2-gentelella](https://github.com/yiister/yii2-gentelella), [Demo](https://colorlib.com/polygon/gentelella/)
- Yii2 User is strong and proved user-module with many features: [dektrium/yii2-user](https://github.com/dektrium/yii2-user) (login `adminus`, password `adminus`)
- Frontend and Backend User Controllers are filtered (by `dektrium/yii2-user`)
- File or DB cache, but I recommend Redis Cache - it is really fast
- Yii2 queue (DB table `queue`), but you can use *Redis-queue* or other [yii2-queue docs](https://github.com/yiisoft/yii2-queue/blob/master/docs/guide/README.md)
- Queue Manager with backend (`/queuemanager/default/index`) using [ignatenkovnikita/yii2-queuemanager](https://github.com/ignatenkovnikita/yii2-queuemanager)
- Log DB Target with backend (`/log/index`) - simply view log messages
- .htaccess - config for **pretty urls** (rewrite index.php), *may be later add nginx config*
- **UrlManagerFrontend** for backend app (all url rules in file `frontend/config/urls.php`, hostInfo in `common/config/params.php`)
- i18n translations in `common/messages` with config (current only English and Russian, language translation are welcome!)
- ContactForm in frontend app is improved: [himiklab/yii2-recaptcha-widget](https://github.com/himiklab/yii2-recaptcha-widget), all email are saved to DB (`common/models/EmailForm` Model), optionally send message to Viber messenger via bot (install requirements [Bogdaan/viber-bot-php](https://github.com/Bogdaan/viber-bot-php) and config, uncomment code in Model)
- Gii generator:

1. added **yii2-queue** Jobs generator
2. yii2 migration generator (from existing table) [Insolita/yii2-migrik](https://github.com/Insolita/yii2-migrik)
3. [schmunk42/yii2-giiant](https://github.com/schmunk42/yii2-giiant) - really steroid, but in development with bugs

Available modules
-----------------

[](#available-modules)

These modules can be easy installed to Yii2-App using Composer:

- Yii2 Super Blog Module (semantic, seo): [akiraz2/yii2-blog](https://github.com/akiraz2/yii2-blog)
- Yii2 many web-statictic counters (all-in-one) *(yandex, google, own db-counter)*: [akiraz2/yii2-stat](https://github.com/akiraz2/yii2-stat)
- yii2 opengraph component: [dragonjet/yii2-opengraph](https://github.com/dragonjet/yii2-opengraph)
- yii2 settings (db+cache): [yii2mod/yii2-settings](https://github.com/yii2mod/yii2-settings)
- etc...

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

[](#installation)

Yii2-app template can be installed using composer. Run following command to download and install Yii2-app:

```
composer create-project --prefer-dist akiraz2/yii2-app my-site

```

After installation run `init`

Docker
------

[](#docker)

Install yii2-app using [Docker](https://www.docker.com):

1. run command to create project

```
docker run --rm --interactive --tty \
  --volume $PWD:/app \
  --volume ${COMPOSER_HOME:-$HOME/.composer}:/tmp \
  composer create-project --prefer-dist akiraz2/yii2-app my-site

```

1. copy `.env-dist` to `.env`, configure if needed. You can change DB from mysql to postgresql - just change docker-compose.yml (and common/config/main-local.php after init)
2. copy `/mysql/docker-entrypoint-initdb.d/createdb.sql.example` to `createdb.sql` if you have ready DB (so dont run migrations)
3. `docker-compose build` (you can configure Docker PHP in /php/Dockerfile-debian before building, for example, add mongodb)
4. `docker-compose up -d`
5. `docker-compose exec php bash`, in terminal run `composer install`, then `php init`, then run other migrations (see next)
6. open  to test frontend (backend is on http://localhost:8200)

Access to Console App: `docker-compose exec php bash` and `php yii mycommand/action`

### Migrations

[](#migrations)

> **NOTE:** Make sure that you have properly configured `db` application component and run the following command

```
php yii migrate/up --migrationPath=@vendor/dektrium/yii2-user/migrations
php yii migrate --migrationPath=@yii/log/migrations/
php yii migrate --migrationPath=vendor/ignatenkovnikita/yii2-queuemanager/migrations/
php yii migrate/up

```

### Default User Credentials

[](#default-user-credentials)

login: `adminus`password: `adminus`

### Web server config

[](#web-server-config)

For newbies, I will recommend reading these instructions [yiisoft/yii2-app-advanced/start-installation.md](https://github.com/yiisoft/yii2-app-advanced/blob/master/docs/guide/start-installation.md) (apache, nginx, etc\\hosts

Development
-----------

[](#development)

### Messages

[](#messages)

Change in `common/config/main.php`

```
'language' => 'ru-RU',
'sourceLanguage' => 'en-US',

```

Add your language in `common/messages/config.php`

```
    'languages' => [
        'ru-RU',
    ],

```

In shell

```
php yii message/extract common/messages/config.php

```

Support
-------

[](#support)

If you have any questions or problems with Yii2-App you can ask them directly by using following email address: `akiraz@bk.ru`.

Contributing
------------

[](#contributing)

If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome. +PSR-2 style coding.

I can apply patch, PR in 2-3 days! If not, please write me `akiraz@bk.ru`

Licensing
---------

[](#licensing)

Yii2-App is released under the BSD License. See the bundled [LICENSE.md](LICENSE.md)for details.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity66

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

Recently: every ~245 days

Total

16

Last Release

1936d ago

Major Versions

v0.7 → v1.02018-04-22

PHP version history (2 changes)v0.7PHP &gt;=7.0.0

v1.3.5PHP &gt;=5.6.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/24400393?v=4)[akiraz2](/maintainers/akiraz2)[@akiraz2](https://github.com/akiraz2)

---

Top Contributors

[![akiraz2](https://avatars.githubusercontent.com/u/24400393?v=4)](https://github.com/akiraz2 "akiraz2 (26 commits)")

---

Tags

dektriumgentelella-themegiii18nloggingpostcsspretty-urlready-to-useyii2-application-templateyii2-queueyii2-userframeworkyii2advancedproject template

### Embed Badge

![Health badge](/badges/akiraz2-yii2-app/health.svg)

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

###  Alternatives

[razonyang/yii2-app-template

Yii2 App Project Template

272.8k](/packages/razonyang-yii2-app-template)[izyue/yii2-app-advanced

Yii 2 Advanced Project Template

1281.9k](/packages/izyue-yii2-app-advanced)[beaten-sect0r/yii2-core

Yii2 Core project template

771.1k](/packages/beaten-sect0r-yii2-core)

PHPackages © 2026

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