PHPackages                             iiyii/getyii - 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. iiyii/getyii

ActiveProject[Framework](/categories/framework)

iiyii/getyii
============

Yii 2 Community

v2.0.0(5y ago)441541158[10 issues](https://github.com/iiYii/getyii/issues)[1 PRs](https://github.com/iiYii/getyii/pulls)BSD-3-ClausePHPPHP &gt;=5.4.0

Since Apr 25Pushed 2y ago53 watchersCompare

[ Source](https://github.com/iiYii/getyii)[ Packagist](https://packagist.org/packages/iiyii/getyii)[ Docs](https://github.com/iiYii/getyii/)[ RSS](/packages/iiyii-getyii/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (29)Versions (14)Used By (0)

GetYii
======

[](#getyii)

[![Latest Stable Version](https://camo.githubusercontent.com/753e119d650b7942a99872f12f3c47a6709cb318fa79a389b546a5bae2f6b5ab/68747470733a2f2f706f7365722e707567782e6f72672f69697969692f6765747969692f762f737461626c65)](https://packagist.org/packages/iiyii/getyii)[![Total Downloads](https://camo.githubusercontent.com/bf87eb4b9ae9169c0c2e50cd1608df1b637336a3e57e42046d11251e8582f4a5/68747470733a2f2f706f7365722e707567782e6f72672f69697969692f6765747969692f646f776e6c6f616473)](https://packagist.org/packages/iiyii/getyii)[![Latest Unstable Version](https://camo.githubusercontent.com/c8090f86f2583801e3fdfa292e8b1972c578726bdb3bebba7bf906c045cde197/68747470733a2f2f706f7365722e707567782e6f72672f69697969692f6765747969692f762f756e737461626c65)](https://packagist.org/packages/iiyii/getyii)[![License](https://camo.githubusercontent.com/a37b3d1eb5f0f7d3d6eaf312f2a1b70b497a50b352085821897f394f30e3cbe7/68747470733a2f2f706f7365722e707567782e6f72672f69697969692f6765747969692f6c6963656e7365)](https://packagist.org/packages/iiyii/getyii)

community for Yii2

说明
--

[](#说明)

你现在看到的是全新版本的 GetYii 之前的版本我放在 V1 分支上面了，那个版本以后可能就不会更新了。 「doc/images」文件夹里面有截图，你们可以看一下。

全新的 GetYii 只专注于社区，现在基本功能已经 OK 了，以后我们会不断完善的。分享我们的 [trello 项目管理地址](https://trello.com/b/rsZAtG1Y/getyii)。

项目搭建
----

[](#项目搭建)

### 原始安装方法（推荐）

[](#原始安装方法推荐)

1、首先你要安装 [Composer](http://www.yiiframework.com/doc-2.0/guide-start-installation.html#installing-via-composer)，然后你需要手动去新建一个数据库，比方说新建 `getyii` 数据库，如果想使用 emoji 表情的话，意见使用 `utf8mb4` 编码格式，不想用的话， 建议使用 `utf8` 编码格式。

```
git clone https://github.com/iiYii/getyii.git
cd getyii
composer install
php init

```

2、然后修改数据库配置文件的配置信息

```
vim common/config/db.php

```

再使用运行我写的安装程序（帮你生成数据库表和假数据）

```
php yii install

```

或者直接执行数据库迁移工具生成数据库表

```
php yii migrate

```

### composer 安装方法（可能不是最新的）

[](#composer-安装方法可能不是最新的)

1、首先你要安装 [Composer](http://www.yiiframework.com/doc-2.0/guide-start-installation.html#installing-via-composer)，然后你需要手动去新建一个数据库，比方说新建 `getyii` 数据库，如果想使用 emoji 表情的话，意见使用 `utf8mb4` 编码格式，不想用的话， 建议使用 `utf8` 编码格式。

```
composer create-project --prefer-dist --stability=dev iiyii/getyii getyii
cd getyii
php init

```

2、然后复制一份数据库配置，并且修改数据库配置，

```
cp common/config/db.php common/config/db-local.php

```

再使用运行我写的安装程序（帮你生成数据库表和假数据）

```
php yii install

```

或者直接执行数据库迁移工具生成数据库表

```
php yii migrate

```

### docker 搭建方法

[](#docker-搭建方法)

1. 安装好 docker 保证可以运行 docker 和 docker-compose 命令
2. 克隆代码到你本地，并 cd 到相应目录
3. 启动 getyii 应用

$ cp docker-files/docker-compose-example.yml docker-compose.yml

$ docker-compose up -d

访问 getyii

添加以下两个域名加到自己机器的 host 里面

```
 .dev.getyii.com 前台
 .dev.admin.getyii.com 后台

```

### 用户相关

[](#用户相关)

1. 把 user 表中的某用户值 role 字段值改为20，即为前台管理员，目前可以给帖子加精华，不能登录后台。
2. 把 user 表中的某用户值 role 字段值改为30，即为超级管理员，可登录后台。

文档和手册
-----

[](#文档和手册)

1. [Yii2手册](http://book.getyii.com)
2. [中文 Composer 手册](http://docs.phpcomposer.com/)

安装遇到问题怎么办?
----------

[](#安装遇到问题怎么办)

建议在官网的[社区版块](http://www.getyii.com/topic/default/create)**新手提问**下面提问，我会抽空亲自回答。请最大可能的把问题描述清楚，以免浪费我们彼此的时间。

交流群
---

[](#交流群)

- Yii2 中国交流群：343188481
- Get√Yii 开发者群：321493381

捐赠
--

[](#捐赠)

[![微信支付](https://raw.githubusercontent.com/iiYii/getyii/master/wechat-pay.png)](https://raw.githubusercontent.com/iiYii/getyii/master/wechat-pay.png)[![支付宝支付](https://raw.githubusercontent.com/iiYii/getyii/master/ali-pay.png)](https://raw.githubusercontent.com/iiYii/getyii/master/ali-pay.png)

手机微信或者支付宝扫描上方二维码可向本项目捐款

感谢以下这些朋友的资金支持，所得捐赠将用于改善网站服务器、购买开发/调试设备&amp;工具。

捐赠人金额时间说明张\*\*1.002015年7月7日\*作军100.002015年08月07日dba-china树\*333.002015年09月11日\*作军300.002016年04月28日dba-china\*勇20.002017年05月31日\*勇66.002017年12月21日他们正在使用 GetYii
-------------

[](#他们正在使用-getyii)

- DBA-CHINA
- [Fecshop 社区](http://www.fecshop.com/)

感谢
--

[](#感谢)

- 感谢 [Ruby-China](https://github.com/ruby-china/ruby-china) 的开源代码。
- 感谢 [PHPHub](https://github.com/summerblue/phphub) 的开源代码。
- 感谢 [huajuan](https://github.com/callmez/huajuan) 的开源代码。
- 最后再感谢一下女朋友的支持 &lt;(▰˘◡˘▰)&gt;。

PS:

如果你暂时无法使用 `composer` 的话，访问链接:  密码: ux6c 下载 zip 文件解压就可以用了。然后你要做的是：

- 新建数据库导入 getyii-2015-11-3.sql 数据库
- 修改 `common\config\db-local.php` 文件的数据库配置
- 默认用户名是`admin`，密码是`123456`

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community31

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 90.1% 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 ~232 days

Recently: every ~391 days

Total

9

Last Release

2115d ago

Major Versions

v0.2.4 → v1.02017-03-30

v1.1 → v2.0.02020-08-03

### Community

Maintainers

![](https://www.gravatar.com/avatar/4c0612f70d09feb06ab5d24a31e0cc551f1ee547b42308c695e34d76181f18cf?d=identicon)[forecho](/maintainers/forecho)

---

Top Contributors

[![forecho](https://avatars.githubusercontent.com/u/1725326?v=4)](https://github.com/forecho "forecho (721 commits)")[![ruyi1024](https://avatars.githubusercontent.com/u/1192521?v=4)](https://github.com/ruyi1024 "ruyi1024 (18 commits)")[![dcb9](https://avatars.githubusercontent.com/u/3984347?v=4)](https://github.com/dcb9 "dcb9 (15 commits)")[![lichunqiang](https://avatars.githubusercontent.com/u/2433916?v=4)](https://github.com/lichunqiang "lichunqiang (15 commits)")[![104260033](https://avatars.githubusercontent.com/u/5122595?v=4)](https://github.com/104260033 "104260033 (6 commits)")[![zhenghaicaidd01](https://avatars.githubusercontent.com/u/43332166?v=4)](https://github.com/zhenghaicaidd01 "zhenghaicaidd01 (5 commits)")[![grutabow](https://avatars.githubusercontent.com/u/15918430?v=4)](https://github.com/grutabow "grutabow (5 commits)")[![dacheng-gao](https://avatars.githubusercontent.com/u/13791720?v=4)](https://github.com/dacheng-gao "dacheng-gao (4 commits)")[![asjmtz](https://avatars.githubusercontent.com/u/5562137?v=4)](https://github.com/asjmtz "asjmtz (3 commits)")[![onyony](https://avatars.githubusercontent.com/u/12790798?v=4)](https://github.com/onyony "onyony (2 commits)")[![gugoan](https://avatars.githubusercontent.com/u/1585443?v=4)](https://github.com/gugoan "gugoan (2 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![qiansen1386](https://avatars.githubusercontent.com/u/1759658?v=4)](https://github.com/qiansen1386 "qiansen1386 (1 commits)")[![icehillsx](https://avatars.githubusercontent.com/u/9638968?v=4)](https://github.com/icehillsx "icehillsx (1 commits)")[![fancyecommerce](https://avatars.githubusercontent.com/u/16605599?v=4)](https://github.com/fancyecommerce "fancyecommerce (1 commits)")

---

Tags

bbsgetyiiphpyiiyii2frameworkyii2advancedcommunityapplication template

### Embed Badge

![Health badge](/badges/iiyii-getyii/health.svg)

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

###  Alternatives

[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

672.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)[izyue/yii2-app-advanced

Yii 2 Advanced Project Template

1281.9k](/packages/izyue-yii2-app-advanced)[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)
