PHPackages                             spreling/yii2-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. spreling/yii2-template

ActiveProject[Framework](/categories/framework)

spreling/yii2-template
======================

Yii 2 Spreling Project Template

1.0(10y ago)19BSD-3-ClausePHPPHP &gt;=5.4.0

Since Aug 25Pushed 9y ago2 watchersCompare

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

READMEChangelog (1)Dependencies (7)Versions (2)Used By (0)

Yii2 Project Template
=====================

[](#yii2-project-template)

This is a skeleton [Yii 2](http://www.yiiframework.com/) application best for developing complex Web applications with mutiple tiers. It is derriven form the [Yii 2 Advanced Project Template](https://github.com/yiisoft/yii2-app-advanced/).

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.

In additon to the Yii 2 Advanced Project Template there is a restructure of the Directory Structure. This Template build arround the idea of Modules and all the components even the core ones are wrapt in modules. Through this it becomes easy to deploy a collection of pre build modules in this skeleton to quick build a website.

Documentation is at [the wiki](https://github.com/spreling/yii2-template/wiki).

[![Latest Stable Version](https://camo.githubusercontent.com/313032ffa09a2ff16c3044e1f1764dc04330ae5733419b8866762be8cd6878f6/68747470733a2f2f706f7365722e707567782e6f72672f737072656c696e672f796969322d74656d706c6174652f762f737461626c65)](https://packagist.org/packages/spreling/yii2-template)[![Total Downloads](https://camo.githubusercontent.com/4badf0eff6285eeec7f587cda0f5528d5be7e78b12291de5a463a9ed706ff093/68747470733a2f2f706f7365722e707567782e6f72672f737072656c696e672f796969322d74656d706c6174652f646f776e6c6f616473)](https://packagist.org/packages/spreling/yii2-template)

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

[](#directory-structure)

```
_common
    engine/
        config/          contains shared configurations
        modules/         contains all the modules used in both backend and frontend
          core/          contains the core files for this skeleton used in both backend and frontend
           models/       contains model classes used in both backend and frontend
    vendor/              contains dependent 3rd-party packages
_environments            contains environment-based overrides
_init                    contains script for environment-based overrides and a requirements check script
backend
    engine/
        config/          contains backend configurations
        modules/         contains all the modules used in the frontend
          core/          contains the core files for this skeleton used in the frontend
            components/  contains Web component classes
            controllers/ contains Web controller classes
            models/      contains backend-specific model classes
            views/       contains view files for the Web application
            widgets/     contains frontend widgets
    web/                 contains the entry script and Web resources
      assets/            contains application assets such as JavaScript and CSS
      css/               contains css that is not generated by the application
      resources/         contains all the resource needed for the website except CSS and Javascript
    runtime/             contains files generated during runtime
console
    engine/
        config/          contains console configurations
        modules/         contains all the modules used in the console
          core/          contains the core files for this skeleton used in console
            controllers/ contains console controllers (commands)
            models/      contains console-specific model classes
    runtime/             contains files generated during runtime
    tests/               contains various tests for the advanced application
frontend
    engine/
        config/          contains frontend configurations
        modules/         contains all the modules used in the frontend
          core/          contains the core files for this skeleton used in the frontend
            components/  contains Web component classes
            controllers/ contains Web controller classes
            models/      contains frontend-specific model classes
            views/       contains view files for the Web application
            widgets/     contains frontend widgets
    web/                 contains the entry script and Web resources
      assets/            contains application assets such as JavaScript and CSS
      css/               contains css that is not generated by the application
      resources/         contains all the resource needed for the website except CSS and Javascript
    runtime/             contains files generated during runtime

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.9% 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

Unknown

Total

1

Last Release

3919d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/44063fca550198095835c09763e7d5ae6e001a9db101f6c7b89f0f0958690c4b?d=identicon)[spreling](/maintainers/spreling)

---

Top Contributors

[![spreling-zz](https://avatars.githubusercontent.com/u/657459?v=4)](https://github.com/spreling-zz "spreling-zz (10 commits)")[![spreling](https://avatars.githubusercontent.com/u/83030880?v=4)](https://github.com/spreling "spreling (1 commits)")

---

Tags

frameworkyii2project templateSpreling

### Embed Badge

![Health badge](/badges/spreling-yii2-template/health.svg)

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

PHPackages © 2026

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