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

ActiveLibrary[Framework](/categories/framework)

cornyk/yii2-template
====================

Yii2 Template

05PHP

Since Feb 10Pushed 3y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 Template
=============

[](#yii2-template)

使用本项目
-----

[](#使用本项目)

```
composer create-project cornyk/yii2-template:dev-master
```

项目依赖说明
------

[](#项目依赖说明)

- PHP最低环境要求7.4
- PHP 7.4 ~ 8.2 验证可使用
- 其他PHP依赖扩展参照Composer的依赖

项目结构说明
------

[](#项目结构说明)

```
├─bootstrap/                              //Web应用初始化目录
│  ├─app.php                              //Web应用初始化文件
│  ├─constants.php                        //项目常量定义
│  ├─functions.php                        //项目工具类函数定义
│  └─components/                          //项目组件目录，命名空间为'components'
│     ├─RequestLogEvent.php               //请求日志记录事件
│     ├─SmartyTranslationExtension.php    //Smarty翻译标签扩展
│     └─TranslationEvent.php              //翻译监听事件
├─build/                                  //项目构建配置目录
│  ├─env/                                 //环境分离配置
│  ├─nginx/                               //Nginx配置文件
│  └─sql/                                 //数据库结构sql文件
├─config/                                 //配置文件目录
│  ├─app_params.php                       //应用参数定义配置文件
│  ├─web_routes.php                       //Web应用路由配置文件
│  ├─base/                                //基础配置项目录
│  │  ├─console.php                       //命令行应用配置文件
│  │  └─web.php                           //Web应用配置文件
│  └─items/                               //细分配置项目录
│     ├─db.php                            //数据库配置文件
│     ├─dev_tools.php                     //开发工具配置文件，仅在dev环境下有效
│     ├─i18n.php                          //国际化配置文件
│     ├─log.php                           //日志配置文件
│     ├─queue.php                         //队列配置文件
│     ├─redis.php                         //Redis配置文件
│     └─view.php                          //Web应用视图模板配置文件
├─public/                                 //WebRoot根目录
│  ├─index.php                            //Web应用入口
│  ├─.htaccess                            //Apache配置文件
│  └─static/                              //公开静态资源文件夹
├─resources/                              //项目资源目录
│  ├─lang/                                //语言包
│  └─views/                               //视图模板目录
├─runtime/                                //应用运行临时目录
├─src/                                    //应用代码文件目录，命名空间为'app'
│  ├─commands/                            //命令行应用控制器
│  ├─commons/                             //应用公共文件
│  ├─controllers/                         //web应用控制器
│  ├─jobs/                                //异步队列作业层
│  ├─models/                              //数据库模型层
│  ├─services/                            //应用逻辑层
│  └─utils/                               //工具类
├─tests/                                  //单元测试文件目录，命名空间为'tests'
└─yii                                     //命令行应用执行入口

```

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity23

Early-stage or recently created project

 Bus Factor1

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

### Community

Maintainers

![](https://www.gravatar.com/avatar/5dafb924f8c1a246f87ac10582e57349b9f508eccbb82a24c4cdde262e9f5af2?d=identicon)[cornyk](/maintainers/cornyk)

---

Top Contributors

[![cornyk](https://avatars.githubusercontent.com/u/7781510?v=4)](https://github.com/cornyk "cornyk (2 commits)")

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/cornyk-yii2-template/health.svg)](https://phpackages.com/packages/cornyk-yii2-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)
