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

ActiveProject[Framework](/categories/framework)

wayhood/yii2-app-template
=========================

Yii 2 Application Template

135PHP

Since Jan 21Pushed 11y ago1 watchersCompare

[ Source](https://github.com/wayhood/yii2-app-template)[ Packagist](https://packagist.org/packages/wayhood/yii2-app-template)[ RSS](/packages/wayhood-yii2-app-template/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

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

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

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

[](#directory-structure)

```
apps
    common
        config/          contains shared configurations
        mail/            contains view files for e-mails
        models/          contains model classes used in both backend and frontend
scripts
    init                 init project
    app                  app creation/deletion tool
    requirements         php environment check.
runtimes/                contains files generated during runtime by app name
vendor/                  contains dependent 3rd-party packages
environments/            contains environment-based overrides
tests                    contains various tests for the advanced application
    codeception/         contains tests developed with Codeception PHP Testing Framework

```

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

[](#installation)

```
php composer.phar global require "fxp/composer-asset-plugin:1.0.0-beta4"
php composer.phar create-project --prefer-dist --stability=dev wayhood/yii2-app-template app

```

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

[](#getting-started)

1. 运行 `scripts/app` 创建 web 或 console 的应用程序， 会在apps下创建
2. 运行 `scripts/init` 初始化项目

Set document roots of your Web server:

- for appname `/path/to/yii-application/apps/"appname"/web/` and using the URL `http://webserver/pato/to/`

Run a Console App:

- scripts/"entryname"

yii系统的命令，使用 `vendor/bin/yii`

快速还原官方的 yii2-app-advanced:

1. `scripts/app --act=Create --type=Web --name=backend`
2. `scripts/app --act=Create --type=Web --name=frontend`
3. `scripts/app --act=Create --type=Console --name=console --enter=yii`

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/c1ec384043dc1c9dc6666c017a0404e06716ece7dbef992047e1c83741c649bc?d=identicon)[wayhood](/maintainers/wayhood)

### Embed Badge

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

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

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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