PHPackages                             yiiplus/scaffold - 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. yiiplus/scaffold

ActiveProject[Framework](/categories/framework)

yiiplus/scaffold
================

scaffold是一个基于Yii2高级项目模版工程化实现的应用程序

1.1.1(7y ago)1614BSD-3-ClausePHPPHP &gt;=7.1.0

Since Apr 26Pushed 5y ago2 watchersCompare

[ Source](https://github.com/yiiplus/scaffold)[ Packagist](https://packagist.org/packages/yiiplus/scaffold)[ Docs](https://github.com/yiiplus/)[ RSS](/packages/yiiplus-scaffold/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (27)Versions (11)Used By (0)

 [ ![](https://avatars0.githubusercontent.com/u/993323) ](https://github.com/yiisoft)

Yii 2 Scaffold Project Kit
==========================

[](#yii-2-scaffold-project-kit)

易加-脚手架(scaffold)是一个基于[Yii2高级项目模版](https://github.com/yiisoft/yii2-app-advanced)工程化实现的应用程序，它将更加高效、规范和工程化的满足项目开发的需求。

[![Latest Stable Version](https://camo.githubusercontent.com/5af0e32fd6fbdc2b45165dcfd89ec3b3accce9f6974065c2569a7231e63fcf06/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f796969706c75732f73636166666f6c642e737667)](https://packagist.org/packages/yiiplus/scaffold)[![Total Downloads](https://camo.githubusercontent.com/ebb3c81ce6c5703d49d11bd88d8ff9e00a0dea506e44c0e7d4ece4c9981a7d6e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f796969706c75732f73636166666f6c642e737667)](https://packagist.org/packages/yiiplus/scaffold)[![Build Status](https://camo.githubusercontent.com/3ce7c2e5bec703fd8dead3915629f62b2366b481b86dd9f04b0097d7978bf06f/68747470733a2f2f7472617669732d63692e6f72672f796969706c75732f73636166666f6c642e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/yiiplus/scaffold)[![DOCS](https://camo.githubusercontent.com/8a1a6285bf541922488ed3077060ac43888704ac1a24ee95a0f0d60f2eac4286/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f63732d70617373696e672d6f72616e67652e737667)](https://github.com/yiiplus/scaffold/tree/master/docs)[![Yii2](https://camo.githubusercontent.com/d6b0929173e28cc627430d2519ca1853466a70f37395877eaf4820cb3e1e1909/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f506f77657265645f62792d5969695f4672616d65776f726b2d677265656e2e7376673f7374796c653d666c6174)](http://www.yiiframework.com/)[![Apache--2.0](https://camo.githubusercontent.com/76368ba29ec4a62308f3c89d8a097fc9993d18b1257eaf7e2df1fd02c896a2b1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c4943454e53452d4170616368652d2d322e302d626c75652e737667)](https://github.com/yiiplus/scaffold/blob/master/LICENSE)

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

[](#directory-structure)

```
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 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
    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 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
    tests/               contains tests for frontend application
    views/               contains view files for the Web application
    web/                 contains the entry script and Web resources
    widgets/             contains frontend widgets
api
    config/              contains api configurations
    controllers/         contains Web controller classes
    models/              contains api-specific model classes
    runtime/             contains files generated during runtime
    tests/               contains tests for api application
    web/                 contains the entry script and Web resources
vendor/                  contains dependent 3rd-party packages
docker/                  contains docker for project
vagrant/                 contains vagrant for project
environments/            contains environment-based overrides

```

快速安装
----

[](#快速安装)

- 安装 Composer 依赖管理

    - [MacOS/Linux/Unix](http://docs.phpcomposer.com/00-intro.html#Installation-*nix)
    - [Windows](http://docs.phpcomposer.com/00-intro.html#Installation-Windows)
- 安装 Docker 应用容器引擎

    - [MacOS](https://store.docker.com/editions/community/docker-ce-desktop-mac)
    - [Windows](https://store.docker.com/editions/community/docker-ce-desktop-windows)
    - [CentOS](https://store.docker.com/editions/community/docker-ce-server-centos)
    - [Ubuntu](https://store.docker.com/editions/community/docker-ce-server-ubuntu)
    - [AWS](https://store.docker.com/editions/community/docker-ce-aws)
    - [Fedora](https://store.docker.com/editions/community/docker-ce-server-fedora)
    - [Debian](https://store.docker.com/editions/community/docker-ce-server-debian)
- 基于容器化环境部署

    ```
    # 克隆代码
    git clone https://github.com/yiiplus/scaffold.git

    # 进入项目目录
    cd scaffold

    # 设置Git配置
    git config user.name "yourname"
    git config user.email "your email"

    # 编译环境
    # 如果安装失败请尝试添加 GitHub 密钥：
    # 进入 https://github.com/settings/tokens 点击 「Generate new token」 新建一个 Token;
    # 编辑 vim composer.json
    #    "config": {
    #        "github-oauth": {
    #            "github.com": ""
    #        }
    #    }
    composer run-script docker:build

    # 代码规范检查
    ./vendor/bin/phpcs --standard=PSR2 --ignore=tests,docs/,docker/,vendor/,console/migrations,backend/runtime,frontend/runtime,api/runtime,console/runtime,frontend/web/assets,backend/web/assets,api/web/assets -n --colors ./
    # 质量检查工具
    ./vendor/bin/phpmd environments,common,console,backend,frontend,api text phpmd.xml --exclude tests,docs/,docker/,vendor/,console/migrations,backend/runtime,frontend/runtime,api/runtime,console/runtime,frontend/web/assets,backend/web/assets,api/web/assets
    ```
- 访问地址

    - Admin:  用户名:webmaster 密码:111111
    - PC:
    - H5:
    - App:
    - FIS3:
    - phpMyAdmin:  服务器:mysql 用户名:root 密码:root

[文档中心](docs/README.md)
----------------------

[](#文档中心)

- [入门学习](docs/quickstart.md)
- [Docker手册](docs/docker.md)
- [团队编码规范](docs/coding.md)
- 接口文档
    - [App接口文档](docs/app.md)
    - [开放数据接口(openapi)](docs/openapi.md)
    - [内部数据接口(innerapi)](docs/innerapi.md)
- 数据字典
    - [数据库手册](docs/database.md)
    - [缓存手册](docs/cache.md)
    - [邮件和短信](docs/mail.md)
- 服务文档
    - [日志服务](docs/logs.md)
    - [队列服务](docs/queue.md)
    - [定时任务](docs/crontab.md)
    - [监控报警](docs/monitor.md)
- 异常解决
    - [错误对照表](docs/error.md)
    - [调试及调试工具](docs/debug.md)
- [技术白皮书](docs/develop.md)
- [FAQ](docs/faq.md)

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 65.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 ~69 days

Total

5

Last Release

2662d ago

### Community

Maintainers

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

---

Top Contributors

[![hoongbin](https://avatars.githubusercontent.com/u/14089088?v=4)](https://github.com/hoongbin "hoongbin (27 commits)")[![gengxiankun](https://avatars.githubusercontent.com/u/19488539?v=4)](https://github.com/gengxiankun "gengxiankun (14 commits)")

---

Tags

adminadminltebeanstalkdbootstrapdesktopdeveloperdevopsdevops-toolsdevtoolselasticsearchelkfis3kafkakibanalogstashmysqlphprabbitmqredisyii2frameworkscaffoldyii2project template

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/yiiplus-scaffold/health.svg)

```
[![Health](https://phpackages.com/badges/yiiplus-scaffold/health.svg)](https://phpackages.com/packages/yiiplus-scaffold)
```

###  Alternatives

[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13825.6k47](/packages/skeeks-cms)[razonyang/yii2-app-template

Yii2 App Project Template

262.8k](/packages/razonyang-yii2-app-template)[yii2mod/base

Base application template for Yii2

531.3k](/packages/yii2mod-base)

PHPackages © 2026

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