PHPackages                             yii2tech/project-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. yii2tech/project-template

AbandonedProject[Framework](/categories/framework)

yii2tech/project-template
=========================

Yii 2 Project Template from yii2tech

1.1.0(8y ago)5466BSD-3-ClausePHP &gt;=5.6.0

Since Feb 19Compare

[ Source](https://github.com/yii2tech/project-template)[ Packagist](https://packagist.org/packages/yii2tech/project-template)[ Docs](https://github.com/yii2tech/project-template)[ RSS](/packages/yii2tech-project-template/feed)WikiDiscussions Synced today

READMEChangelogDependencies (16)Versions (4)Used By (0)

 [ ![](https://avatars2.githubusercontent.com/u/12951949) ](https://github.com/yii2tech)

Yii 2 Project Template
======================

[](#yii-2-project-template)

This project is a skeleton [Yii 2](http://www.yiiframework.com/) application best for developing complex Web applications with multiple tiers.

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.

[![Latest Stable Version](https://camo.githubusercontent.com/4ce3f4356f687743114caabb6b6ece3c6d493aa4c321e9c15a7d3631a2937c99/68747470733a2f2f706f7365722e707567782e6f72672f79696932746563682f70726f6a6563742d74656d706c6174652f762f737461626c652e706e67)](https://packagist.org/packages/yii2tech/project-template)[![Total Downloads](https://camo.githubusercontent.com/04b9a8954c4a350deaae8ae2f2f562751de518825b066674ca3c211ebdea2750/68747470733a2f2f706f7365722e707567782e6f72672f79696932746563682f70726f6a6563742d74656d706c6174652f646f776e6c6f6164732e706e67)](https://packagist.org/packages/yii2tech/project-template)[![Build Status](https://camo.githubusercontent.com/4f277aa6cdffb914e9a7e28b2200c5f21a0db78b56dbc2f80b280480a2f1a926/68747470733a2f2f7472617669732d63692e6f72672f79696932746563682f70726f6a6563742d74656d706c6174652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/yii2tech/project-template)

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

[](#requirements)

Requirements check script:

```
php requirements.php

```

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

[](#installation)

1. Clone the repository into the project destination directory.
2. Switch the project branch to the needed one: 'master', 'stage', 'live' etc.
3. Run the installation script using following command:

```
php install.php init/all

```

Project should be deployed beyond web accessible folder. Actual web root should be created as symlink to the 'web' folder:

```
ln -s /path/to/project/web /var/www/html/project
```

ASSET COMPRESSION
-----------------

[](#asset-compression)

For assets (CSS and JavaScript) compression use following command:

```
cd /path/to/project/root
php yii asset config/frontend-asset-compress.php config/frontend-assets.php

```

See `config/frontend-asset-compress.php` file for more details.

The 'backend' assets compression is performed as separated command:

```
cd /path/to/project/root
php yii asset config/backend-asset-compress.php config/backend-assets.php

```

See `config/backend-asset-compress.php` file for more details.

SITEMAP GENERATION
------------------

[](#sitemap-generation)

Sitemap is generated by `app\controllers\console\SitemapController::actionGenerate()` method. Make sure all pages, which should appear at sitemap are processed in this method. For sitemap generation use following command:

```
cd /path/to/project/root
php yii sitemap/generate

```

SELF-UPDATE
-----------

[](#self-update)

After successful installation 'stage' or 'production' server can be updated using 'self-update' command.

In order to perform an update, run the following commands:

```
cd /path/to/project/root
php yii self-update config/self-update.php

```

GII
---

[](#gii)

Admin section generation:

```
php yii gii/adminCrud --modelClass="app\models\db\{NAME}" --controllerClass="app\controllers\backend\{NAME}Controller" --searchModelClass="app\models\backend\{NAME}Search" --viewPath="@app/views/backend/{NAME}" --enableI18N=1

```

Admin section with context generation:

```
php yii gii/adminCrud --modelClass="app\models\db\{NAME}" --controllerClass="app\controllers\backend\{NAME}Controller" --searchModelClass="app\models\backend\{NAME}Search" --viewPath="@app/views/backend/{NAME}" --contextClass="app\models\db\{CONTEXT}" --enableI18N=1

```

I18N
----

[](#i18n)

Translation messages generation:

```
php yii message messages/config.php

```

TESTING
-------

[](#testing)

This project supports testing via [PHPUnit](https://phpunit.de/) as well as via [Codeception](http://codeception.com)

Regular PHPUnit tests are located under 'tests\\unit' directory. In case you have PHPUnit installed you can run them using `phpunit` command from the project root.

Please refer to [Codeception Testing](tests/codeception/README.md) manual for the details about Codeception tests setup and running.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity60

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

Total

3

Last Release

3042d ago

Major Versions

1.1.0 → 2.0.x-dev2018-03-03

PHP version history (3 changes)1.0.0PHP &gt;=5.4.0

1.1.0PHP &gt;=5.6.0

2.0.x-devPHP &gt;=7.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/854af1889dd7384243cff0bf0fde23463f76058b499b15c740f02e7033ec7ce6?d=identicon)[klimov-paul](/maintainers/klimov-paul)

---

Top Contributors

[![klimov-paul](https://avatars.githubusercontent.com/u/1482054?v=4)](https://github.com/klimov-paul "klimov-paul (36 commits)")

---

Tags

frameworkyii2project template

### Embed Badge

![Health badge](/badges/yii2tech-project-template/health.svg)

```
[![Health](https://phpackages.com/badges/yii2tech-project-template/health.svg)](https://phpackages.com/packages/yii2tech-project-template)
```

###  Alternatives

[yii2mod/base

Base application template for Yii2

531.3k](/packages/yii2mod-base)

PHPackages © 2026

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