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

ActiveProject[Framework](/categories/framework)

filsh/yii2-app-platform
=======================

Yii 2 Platform Application Template

2.0.0-alpha(12y ago)0263BSD-3-ClausePHPPHP &gt;=5.4.0

Since Dec 1Pushed 12y ago1 watchersCompare

[ Source](https://github.com/Filsh/yii2-app-platform)[ Packagist](https://packagist.org/packages/filsh/yii2-app-platform)[ Docs](http://www.yiiframework.com/)[ RSS](/packages/filsh-yii2-app-platform/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (5)Versions (3)Used By (0)

Yii 2 Platform Application Template
===================================

[](#yii-2-platform-application-template)

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

[](#directory-structure)

```
common
	config/             contains shared configurations
	models/             contains model classes used in both backend and frontend
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 application 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
	views/              contains view files for the Web application
	web/                contains the entry script and Web resources
frontend
	assets/             contains application assets such as JavaScript and CSS
	config/             contains frontend configurations
	controllers/        contains Web controller classes
	models/             contains frontend-specific model classes
	runtime/            contains files generated during runtime
	views/              contains view files for the Web application
	web/                contains the entry script and Web resources
rest
	config/             contains REST API configurations
	controllers/        contains REST API controller classes
	runtime/            contains files generated during runtime
vendor/                 contains dependent 3rd-party packages
environments/                contains environment-based overrides

```

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

[](#requirements)

The minimum requirement by this application template that your Web server supports PHP 5.4.0.

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

[](#installation)

### Install via Composer

[](#install-via-composer)

If you do not have [Composer](http://getcomposer.org/), you may install it by following the instructions at [getcomposer.org](http://getcomposer.org/doc/00-intro.md#installation-nix).

You can then install the application using the following command:

```
php composer.phar create-project --stability=dev filsh/yii2-app-platform app-platform

```

GETTING STARTED
---------------

[](#getting-started)

After you install the application, you have to conduct the following steps to initialize the installed application. You only need to do these once for all.

1. Run command `init` to initialize the application with a specific environment.
2. Create a new database and adjust the `components.db` configuration in `common/config/params.php` accordingly.
3. Run command `yii migrate` to apply DB migrations.

Now you should be able to access:

- the frontend using the URL `http://localhost/advanced/frontend/web/`
- the backend using the URL `http://localhost/advanced/backend/web/`
- the REST API using the URL `http://localhost/advanced/rest/v1.0/`

NGINX CONFIGURATION
-------------------

[](#nginx-configuration)

```
server {
	set $path_host "/var/www/yii2-app-platform/frontend/web";
	set $path_index "index.php";

	server_name www.platform.dev;
	root $path_host;
	index $path_index;

	listen   80;
	charset utf-8;
	client_max_body_size 128M;

	error_page 500 502 503 504 /50x.html;

	location = /50x.html {
		root /usr/share/nginx/www;
	}

	location / {
		try_files $uri $uri/ /$path_index?$query_string;
	}

	location ~ \.php$ {
		fastcgi_split_path_info ^(.+\.php)(/.+)$;
		fastcgi_index $path_index;
		fastcgi_pass php-fpm;

		fastcgi_connect_timeout 30s;
		fastcgi_read_timeout 30s;
		fastcgi_send_timeout 60s;
		fastcgi_ignore_client_abort on;
		fastcgi_pass_header "X-Accel-Expires";

		fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
		fastcgi_param  PATH_INFO        $fastcgi_path_info;
		fastcgi_param  HTTP_REFERER     $http_referer;
		include fastcgi_params;
	}

	location ~* \.(js|css|less|png|jpg|jpeg|gif|ico|woff|ttf|svg|tpl)$ {
		expires 24h;
		access_log off;
	}

	location = /favicon.ico {
		log_not_found off;
		access_log off;
	}

	location = /robots.txt {
		log_not_found off;
		access_log off;
	}

	location ~ /\. {
		deny all;
		access_log off;
		log_not_found off;
	}
}

```

When using this configuration, you should set `cgi.fix_pathinfo=0` in the `php.ini` file in order to avoid many unnecessary system `stat()` calls.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

4545d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7fafc0b472b8b8cf1097a6fb094b7c5c10293e2f976e9eacb1ea1a34031b6e15?d=identicon)[Filsh](/maintainers/Filsh)

---

Top Contributors

[![samdark](https://avatars.githubusercontent.com/u/47294?v=4)](https://github.com/samdark "samdark (73 commits)")[![qiangxue](https://avatars.githubusercontent.com/u/993322?v=4)](https://github.com/qiangxue "qiangxue (52 commits)")[![kartik-v](https://avatars.githubusercontent.com/u/3592619?v=4)](https://github.com/kartik-v "kartik-v (11 commits)")[![cebe](https://avatars.githubusercontent.com/u/189796?v=4)](https://github.com/cebe "cebe (10 commits)")[![filsh](https://avatars.githubusercontent.com/u/6173680?v=4)](https://github.com/filsh "filsh (7 commits)")[![slavcodev](https://avatars.githubusercontent.com/u/757721?v=4)](https://github.com/slavcodev "slavcodev (5 commits)")[![schmunk42](https://avatars.githubusercontent.com/u/649031?v=4)](https://github.com/schmunk42 "schmunk42 (3 commits)")[![mohorev](https://avatars.githubusercontent.com/u/4974062?v=4)](https://github.com/mohorev "mohorev (2 commits)")[![suralc](https://avatars.githubusercontent.com/u/730039?v=4)](https://github.com/suralc "suralc (2 commits)")[![lancecoder](https://avatars.githubusercontent.com/u/2000485?v=4)](https://github.com/lancecoder "lancecoder (2 commits)")[![gonimar](https://avatars.githubusercontent.com/u/756571?v=4)](https://github.com/gonimar "gonimar (2 commits)")[![resurtm](https://avatars.githubusercontent.com/u/100198?v=4)](https://github.com/resurtm "resurtm (2 commits)")[![lucianobaraglia](https://avatars.githubusercontent.com/u/374554?v=4)](https://github.com/lucianobaraglia "lucianobaraglia (1 commits)")[![FrediL](https://avatars.githubusercontent.com/u/1583084?v=4)](https://github.com/FrediL "FrediL (1 commits)")[![gitrad](https://avatars.githubusercontent.com/u/4062120?v=4)](https://github.com/gitrad "gitrad (1 commits)")[![KingYes](https://avatars.githubusercontent.com/u/902548?v=4)](https://github.com/KingYes "KingYes (1 commits)")[![kumorig](https://avatars.githubusercontent.com/u/5523938?v=4)](https://github.com/kumorig "kumorig (1 commits)")[![bethrezen](https://avatars.githubusercontent.com/u/260284?v=4)](https://github.com/bethrezen "bethrezen (1 commits)")[![marsuboss](https://avatars.githubusercontent.com/u/5856?v=4)](https://github.com/marsuboss "marsuboss (1 commits)")[![pmoust](https://avatars.githubusercontent.com/u/2493339?v=4)](https://github.com/pmoust "pmoust (1 commits)")

---

Tags

frameworkadvancedyiiapplication template

### Embed Badge

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

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

###  Alternatives

[yii2-starter-kit/yii2-starter-kit

Yii2 Starter Kit Application Template

1.4k6.6k](/packages/yii2-starter-kit-yii2-starter-kit)[nenad/yii2-advanced-template

Improved Yii 2 Advanced Application Template By Nenad Zivkovic

9211.1k](/packages/nenad-yii2-advanced-template)[funson86/yii2-adminlte

Yii 2 Advanced Application Template with Adminlte Theme

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

Yii 2 Practical Application Template

682.7k](/packages/kartik-v-yii2-app-practical)[kartik-v/yii2-app-practical-a

Yii 2 Practical A Application Template

363.7k](/packages/kartik-v-yii2-app-practical-a)[abhi1693/yii2-app-advanced-startup-kit

Yii 2 Practical Advanced Application Template (Startup Kit)

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

PHPackages © 2026

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