PHPackages                             kartik-v/yii2-app-practical - 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. kartik-v/yii2-app-practical

ActiveProject[Framework](/categories/framework)

kartik-v/yii2-app-practical
===========================

Yii 2 Practical Application Template

v1.5.2(8y ago)682.7k27[3 issues](https://github.com/kartik-v/yii2-app-practical/issues)BSD-3-ClausePHPPHP &gt;=5.4.0

Since May 13Pushed 7y ago8 watchersCompare

[ Source](https://github.com/kartik-v/yii2-app-practical)[ Packagist](https://packagist.org/packages/kartik-v/yii2-app-practical)[ Docs](http://demos.krajee.com/app-practical)[ RSS](/packages/kartik-v-yii2-app-practical/feed)WikiDiscussions master Synced yesterday

READMEChangelog (7)Dependencies (8)Versions (8)Used By (0)

 [ ![Krajee Logo](https://camo.githubusercontent.com/4addfbb3869c3fc7d79befea4f06d9cf3655a686fb503df0da1d725859cfdef9/687474703a2f2f6b617274696b2d762e6769746875622e696f2f626f6f7473747261702d66696c65696e7075742d73616d706c65732f73616d706c65732f6b72616a65652d6c6f676f2d622e706e67) ](http://demos.krajee.com "Krajee Demos")
 Yii 2 Practical Project Template ---

 [ ![Donate](https://camo.githubusercontent.com/4af77d425ca202e55ab3d711b438e238ded194735bc345a019ac060e03e26227/687474703a2f2f6b617274696b2d762e6769746875622e696f2f626f6f7473747261702d66696c65696e7075742d73616d706c65732f73616d706c65732f646f6e6174652e706e67) ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=DTP3NZQ6G2AYU "Donate via Paypal")
====================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

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

[![Latest Stable Version](https://camo.githubusercontent.com/4e31ea1f84f0388dce5bf932f8a3809102c643831deacfde31e4e53fe82d15a0/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d6170702d70726163746963616c2f762f737461626c652e737667)](https://packagist.org/packages/kartik-v/yii2-app-practical)[![License](https://camo.githubusercontent.com/7ff0e1c724d0a2307546d95d48443096c609db558d39a8b972a6f4a224456e23/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d6170702d70726163746963616c2f6c6963656e73652e737667)](https://packagist.org/packages/kartik-v/yii2-app-practical)[![Total Downloads](https://camo.githubusercontent.com/3510d083e91184aeefa1d8ca2e4f8482df776a04760b5c9a79330a9c3c9fb93b/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d6170702d70726163746963616c2f646f776e6c6f6164732e737667)](https://packagist.org/packages/kartik-v/yii2-app-practical)[![Monthly Downloads](https://camo.githubusercontent.com/22c00221069d07688da424b0d40cde9016f60f524f885ada8f4d7013f972ab82/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d6170702d70726163746963616c2f642f6d6f6e74686c792e706e67)](https://packagist.org/packages/kartik-v/yii2-app-practical)[![Daily Downloads](https://camo.githubusercontent.com/8e6ef4c12fe31ffb5b265657650a8a6cd1282cb0d1e27ad97f418bda07ecae6f/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d6170702d70726163746963616c2f642f6461696c792e706e67)](https://packagist.org/packages/kartik-v/yii2-app-practical)

Yii 2 Practical Project Template is a skeleton Yii 2 application based on the [yii2-advanced template](https://github.com/yiisoft/yii2-app-advanced/) best for developing complex Web applications with multiple tiers. The template allows a **practical** method to directly access the frontend from the app root.

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.

Why yii2-practical?
-------------------

[](#why-yii2-practical)

After installing an `app` in the yii2-advanced application you normally would access the frontend by:

```
http://domain/app/frontend/web

```

However, in many **practical** scenarios (especially on shared and single domain hosts) one would want their users to directly access frontend as:

```
http://domain/app

```

The `yii2-app-practical` enables you to achieve just that by carefully moving and rearranging the bootstrap files and web components of frontend to work directly out of the app root. The `frontend/web` is entirely eliminated and one can directly access the application frontend this way:

```
http://domain/app

```

All other aspects of the app configuration remain the same as the **yii2-advanced** app. The `common`, `backend` and `console`will remain as is. The frontend config, assets, models, controllers, views, widgets and components, will still reside within the `frontend` directory. It is just the web access that is moved out to app root.

SOME KEY ADDITIONS
------------------

[](#some-key-additions)

1. The template has some security preconfigured for users with Apache web servers. It has a default `.htaccess` security configuration setup.
2. The template has prettyUrl enabled by default and the changes have been made to `.htaccess` as well as `urlManager`component config in the common config directory.
3. The template has isolated cookie settings for backend and frontend so that you can seamlessly access frontend and backend from same client. The config files includes special `identity` and `csrf` cookie parameter settings for backend. Edit it according to your needs if necessary.

Detailed documentation can be referred at [docs/guide/README.md](docs/guide/README.md).

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

[](#directory-structure)

```
/
    /                    contains the frontend entry script, favicon, and robots.txt.
    assets/              contains frontend application runtime web assets such as JavaScript and CSS
common
    config/              contains shared configurations
    mail/                contains view files for e-mails
    models/              contains model classes used in both backend and frontend
    tests/               contains tests for common classes
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 backend application runtime web 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
    tests/               contains tests for backend application
    views/               contains view files for the Web application
    web/                 contains the entry script and Web resources
frontend
    assets/              contains web assets and scripts used by frontend application
    config/              contains frontend configurations
    controllers/         contains Web controller classes
    models/              contains frontend-specific model classes
    runtime/             contains files generated during runtime
    tests/               contains tests for frontend application
    views/               contains view files for the Web application
    widgets/             contains frontend widgets
vendor/                  contains dependent 3rd-party packages
environments/            contains environment-based overrides

```

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 98.5% 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 ~186 days

Recently: every ~241 days

Total

7

Last Release

3262d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3592619?v=4)[Kartik Visweswaran](/maintainers/kartik-v)[@kartik-v](https://github.com/kartik-v)

---

Top Contributors

[![kartik-v](https://avatars.githubusercontent.com/u/3592619?v=4)](https://github.com/kartik-v "kartik-v (67 commits)")[![derekisbusy](https://avatars.githubusercontent.com/u/5118781?v=4)](https://github.com/derekisbusy "derekisbusy (1 commits)")

---

Tags

frameworkyii2advancedapplication templatepractical

### Embed Badge

![Health badge](/badges/kartik-v-yii2-app-practical/health.svg)

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

###  Alternatives

[kartik-v/yii2-app-practical-a

Yii 2 Practical A Application Template

363.7k](/packages/kartik-v-yii2-app-practical-a)[nenad/yii2-advanced-template

Improved Yii 2 Advanced Application Template By Nenad Zivkovic

9211.1k](/packages/nenad-yii2-advanced-template)[abhi1693/yii2-app-advanced-startup-kit

Yii 2 Practical Advanced Application Template (Startup Kit)

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

Yii 2 Advanced Application Template with Adminlte Theme

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

Yii 2 Practical-B Application Template

312.7k](/packages/kartik-v-yii2-app-practical-b)

PHPackages © 2026

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