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

ActiveProject[Framework](/categories/framework)

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

Yii 2 Practical A Application Template

v1.5.3(8y ago)343.7k14[4 issues](https://github.com/kartik-v/yii2-app-practical-a/issues)BSD-3-ClausePHPPHP &gt;=5.4.0

Since May 13Pushed 7y ago3 watchersCompare

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

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

 [ ![Krajee Logo](https://camo.githubusercontent.com/4addfbb3869c3fc7d79befea4f06d9cf3655a686fb503df0da1d725859cfdef9/687474703a2f2f6b617274696b2d762e6769746875622e696f2f626f6f7473747261702d66696c65696e7075742d73616d706c65732f73616d706c65732f6b72616a65652d6c6f676f2d622e706e67) ](http://demos.krajee.com "Krajee Demos")
 Yii 2 Practical-A 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-a-project-template--------------------)

[![Latest Stable Version](https://camo.githubusercontent.com/75122bab5b5bc70b711f24e64ddd08255d7cf1b4e9756423b3a664c77ef8359d/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d6170702d70726163746963616c2d612f762f737461626c652e737667)](https://packagist.org/packages/kartik-v/yii2-app-practical-a)[![License](https://camo.githubusercontent.com/f087e6d8b31212d3f3d271c14c1d11d920799a037082224679f0c1235e7edfa2/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d6170702d70726163746963616c2d612f6c6963656e73652e737667)](https://packagist.org/packages/kartik-v/yii2-app-practical-a)[![Total Downloads](https://camo.githubusercontent.com/db6f9d1c696dfd91ee0c5c04e053031a2d00c108cbe55b70621be8b62eb0c207/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d6170702d70726163746963616c2d612f646f776e6c6f6164732e737667)](https://packagist.org/packages/kartik-v/yii2-app-practical-a)[![Monthly Downloads](https://camo.githubusercontent.com/fc987aada818bf0805996423f1e93b22a9d0d87ba31b4b0fab25cdb6b5453655/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d6170702d70726163746963616c2d612f642f6d6f6e74686c792e706e67)](https://packagist.org/packages/kartik-v/yii2-app-practical-a)[![Daily Downloads](https://camo.githubusercontent.com/a1f0aa1c8ce1c7b5d0cd2309c54f78987f06e0a2fb6beac4aca1e8893364ce85/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d6170702d70726163746963616c2d612f642f6461696c792e706e67)](https://packagist.org/packages/kartik-v/yii2-app-practical-a)

Yii 2 Practical-A 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 and a simplified way to access backend.

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-a?
---------------------

[](#why-yii2-practical-a)

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

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

```

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

```
http://domain/app
http://domain/app/backend

```

The `yii2-app-practical-a` 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 and backend out of the `backend`. The `frontend/web` and `backend/web` folders are entirely eliminated and one can directly access the application frontend this way:

```
http://domain/app

```

and backend this way

```
http://domain/app/backend

```

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

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
    /                    contains the backend entry script, favicon, and robots.txt.
    assets/              contains the backend application runtime web assets such as JavaScript and CSS
    assets_b/            contains web assets and scripts used by backend application
    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

35

—

LowBetter than 77% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 97.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

Every ~177 days

Recently: every ~267 days

Total

8

Last Release

3186d 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 (46 commits)")[![circulon](https://avatars.githubusercontent.com/u/499977?v=4)](https://github.com/circulon "circulon (1 commits)")

---

Tags

frameworkyii2advancedapplication templatepracticalpractical-a

### Embed Badge

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

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

###  Alternatives

[kartik-v/yii2-app-practical

Yii 2 Practical Application Template

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

Improved Yii 2 Advanced Application Template By Nenad Zivkovic

9111.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)
