PHPackages                             feehi/cms - 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. feehi/cms

ActiveProject[Framework](/categories/framework)

feehi/cms
=========

Feehi CMS Project Template

2.1.1(5y ago)5313.0k177[30 issues](https://github.com/liufee/cms/issues)BSD-3-ClausePHPPHP &gt;=5.4.0CI failing

Since Jul 12Pushed 3y ago57 watchersCompare

[ Source](https://github.com/liufee/cms)[ Packagist](https://packagist.org/packages/feehi/cms)[ Docs](http://cms.feehi.com/)[ RSS](/packages/feehi-cms/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (10)Dependencies (11)Versions (44)Used By (0)Security (21)

FeehiCMS **[(English)](docs/running_screenshot/README_EN.md)** 首款编写单元测试、功能测试、验收测试的yii2开源系统
==========================================================================================

[](#feehicms--english--首款编写单元测试功能测试验收测试的yii2开源系统)

基于yii2的CMS系统，运行环境与yii2(php&gt;=5.4)一致。FeehiCMS旨在为yii2爱好者提供一个基础功能稳定完善的系统，使开发者更专注于业务功能开发。 FeehiCMS没有对yii2做任何的修改、封装，但是把yii2的一些优秀特性几乎都用在了FeehiCMS上，虽提供文档， 但FeehiCMS提倡简洁、快速上手，基于FeehiCMS开发可以无需文档，反倒FeehiCMS为yii2文档提供了最好的实例

[![Latest Stable Version](https://camo.githubusercontent.com/305b7bccb7d3720438b2504c6991276b47d226eb5f4acb8f44a92d243865e11c/68747470733a2f2f706f7365722e707567782e6f72672f66656568692f636d732f762f737461626c65)](https://packagist.org/packages/feehi/cms)[![License](https://camo.githubusercontent.com/bb4423ccb2cd9fc100e4ebc61e506c46003b4f58885028c6080e6e66ed15bdc7/68747470733a2f2f706f7365722e707567782e6f72672f66656568692f636d732f6c6963656e7365)](https://packagist.org/packages/feehi/cms)[![Build Status](https://camo.githubusercontent.com/30122b394bdafb6e53300af0c93b298b51ad08e0b0be6f55bb6c933a358da9df/68747470733a2f2f7777772e7472617669732d63692e6f72672f6c69756665652f636d732e7376673f6272616e63683d6d6173746572)](https://www.travis-ci.org/liufee/cms)

演示站点
----

[](#演示站点)

演示站点后台 **用户名:feehicms 密码123456**

- 后台
- 前台 [http://demo.cms.feehi.com](http://demo.cms.feehi.com/)
- api

[更新记录](docs/UPGRADING.md)
-------------------------

[](#更新记录)

帮助
--

[](#帮助)

1. 开发文档
2. QQ群 936448696
3. 微信
     [![微信](https://camo.githubusercontent.com/eb61d4c4b30c8f0db067bf264f5cefd4e09a1e4046fd9f56659709ce85c77ed9/687474703a2f2f696d672d313235313038363439322e636f73677a2e6d7971636c6f75642e636f6d2f6769746875622f7765636861742d776665656c69752e706e67)](https://camo.githubusercontent.com/eb61d4c4b30c8f0db067bf264f5cefd4e09a1e4046fd9f56659709ce85c77ed9/687474703a2f2f696d672d313235313038363439322e636f73677a2e6d7971636c6f75642e636f6d2f6769746875622f7765636861742d776665656c69752e706e67)
4. Email
5. [bug反馈](http://www.github.com/liufee/cms/issues)

功能
--

[](#功能)

- 多语言
- 单元测试
- 功能测试
- 验收测试
- RBAC权限管理
- restful api
- 文章管理
- 操作日志
- 适配手机

FeehiCMS提供完备的web系统基础通用功能，包括前后台菜单管理,文章标签,广告,banner,缓存,网站设置,seo设置,邮件设置,分类管理,单页...

使用Docker
--------

[](#使用docker)

1.下载镜像

```
    $ docker pull registry.cn-hangzhou.aliyuncs.com/feehi/cms #FQ后建议直接使用docker pull feehi/cms
```

2.创建容器

```
    $ docker run --name feehicms -h feehicms -itd -v /path/to/data:/data -e DBDSN=sqlite:/data/feehi.db -e TablePrefix=feehi_ -e AdminUsername=admin -e AdminPassword=123456 -p 8080:80 feehi/cms
```

以上命令将会自动初始化FeehiCMS，并导入数据库(默认数据库为sqlite)
如果需要更使用其他数据库，比如mysql，执行:

```
    $ docker run --name feehicms -h feehicms -itd -e DBDSN=mysql:host=mysql-ip;dbname=feehi -e DBUser=dbuser -e DBPassword=dbpassword -e TablePrefix=feehi_ -e AdminUsername=admin -e AdminPassword=123456 -p 8080:80 feehi/cms
```

如果需要使用postgresql则将DBDSN改为pgsql:host=pgsql-ip

也可以仅初始化FeehiCMS，然后通过web在线安装

```
    $ docker run --name feehicms -h feehicms -itd -p 8080:80 feehi/cms -o start
```

然后访问[http://ip:port/install.php，根据提示选择数据库类型，填写数据库用户名、数据库密码、后台管理员用户名、密码完成安装。](http://ip:port/install.php%EF%BC%8C%E6%A0%B9%E6%8D%AE%E6%8F%90%E7%A4%BA%E9%80%89%E6%8B%A9%E6%95%B0%E6%8D%AE%E5%BA%93%E7%B1%BB%E5%9E%8B%EF%BC%8C%E5%A1%AB%E5%86%99%E6%95%B0%E6%8D%AE%E5%BA%93%E7%94%A8%E6%88%B7%E5%90%8D%E3%80%81%E6%95%B0%E6%8D%AE%E5%BA%93%E5%AF%86%E7%A0%81%E3%80%81%E5%90%8E%E5%8F%B0%E7%AE%A1%E7%90%86%E5%91%98%E7%94%A8%E6%88%B7%E5%90%8D%E3%80%81%E5%AF%86%E7%A0%81%E5%AE%8C%E6%88%90%E5%AE%89%E8%A3%85%E3%80%82)

以上方式启动的容器只能用作开发环境，容器启动命令最终调用为php -S 0.0.0.0:80,如果用作production，可以执行

```
    $ docker run --name feehicms -h feehicms -itd -p 8080:80 feehi/cms -m start
```

容器将启动php-fpm，并监听9000端口，配合nginx使用。nginx配置大致为

```
    location ~ \.php$ {
        ...
        fastcgi_pass fpm-ip:9000;
        fastcgi_param  SCRIPT_FILENAME  /usr/local/feehicms/frontend/web$fastcgi_script_name;
        ...
    }
```

**因为yii2会生成js/css，以及新上传的文件（图片）需要nginx webroot使用php fpm容器同一个文件夹:/usr/local/feehicms/frontend/web**

安装
--

[](#安装)

前置条件: 如未特别说明，本文档已默认您把php命令加入了环境变量，如果您未把php加入环境变量，请把以下命令中的php替换成/path/to/php

> 无论是使用归档文件还是composer，都有相应阶段让您填入后台管理用户名、密码

1. 使用归档文件(简单，适合没有yii2经验者)

    1. 下载FeehiCMS源码 [点击此处下载最新版](http://resource-1251086492.cossh.myqcloud.com/Feehi_CMS.zip)
    2. 解压到目录
    3. 配置web服务器[web服务器配置](docs/WEBSERVER_CONFIG.md)
    4. 浏览器打开  按照提示完成安装(若使用php内置web服务a器则地址为  )
    5. 完成
2. 使用composer (`推荐使用此方式安装`)

    > composer的安装以及国内镜像设置请点击 [此处](https://developer.aliyun.com/composer)

    > 以下命令默认您已全局安装composer，如果您是局部安装的composer:请使用php /path/to/composer.phar来替换以下命令中的composer

    1. 使用composer创建FeehiCMS项目

        ```
            $ composer create-project feehi/cms webApp //此命令创建的FeehiCMS项目不能平滑升级新版本(目录结构简单,目前主力维护版本)
        ```
    2. 依次执行以下命令初始化yii2框架以及导入数据库

        ```
        $ cd webApp
        $ php ./init --env=Development #初始化yii2框架，线上环境请使用--env=Production
        $ php ./yii migrate/up --interactive=0 #导入FeehiCMS sql数据库，执行此步骤之前请先到common/config/main-local.php修改成正确的数据库配置
        ```
    3. 配置web服务器[web服务器配置](docs/WEBSERVER_CONFIG.md)
    4. 完成

运行测试
----

[](#运行测试)

1. 仅运行单元测试,功能测试(不需要配置web服务器)

```
   cd /path/to/webApp
   vendor/bin/codecept run
```

2. 运行单元测试,功能测试,验收测试(需要配置完web服务器)
    1. 分别拷贝backend,frontend,api三个目录下的tests/acceptance.suite.yml.example到各自目录，并均重名为acceptance.suite.yml,且均修改里面的url为各自的访问url地址
    2. 与上(仅运行单元测试,功能测试)命令一致

项目展示
----

[](#项目展示)

- [山东城市服务技师学院](http://www.sdcc.edu.cn/)
- [优悦娱乐网](http://www.qqyouyue.com/)
- [吉安市食品药品监督管理局](http://www.jamsda.gov.cn/)
- [完美娱乐](http://www.qqwanmei.com/)
- [房产网](http://www.itufang.cn/)
- [中丞法拍网](http://www.fapaihouse.com/)
- [51前途网](http://www.51uit.com/)
- [用友财务软件](http://www.myyonyou.cn/)
- ......

[运行效果](docs/running_screenshot)
-------------------------------

[](#运行效果)

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity41

Moderate usage in the ecosystem

Community27

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 98.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 ~37 days

Recently: every ~31 days

Total

41

Last Release

2181d ago

Major Versions

0.1.3 → 1.0.0alpha12017-09-24

1.0.0rc2 → 2.0.02017-12-17

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7278053?v=4)[liufee](/maintainers/liufee)[@liufee](https://github.com/liufee)

---

Top Contributors

[![liufee](https://avatars.githubusercontent.com/u/7278053?v=4)](https://github.com/liufee "liufee (353 commits)")[![ellis-kw-wong](https://avatars.githubusercontent.com/u/6756758?v=4)](https://github.com/ellis-kw-wong "ellis-kw-wong (4 commits)")[![dchaofei](https://avatars.githubusercontent.com/u/29528188?v=4)](https://github.com/dchaofei "dchaofei (1 commits)")[![gugoan](https://avatars.githubusercontent.com/u/1585443?v=4)](https://github.com/gugoan "gugoan (1 commits)")[![wvfeng](https://avatars.githubusercontent.com/u/33809027?v=4)](https://github.com/wvfeng "wvfeng (1 commits)")

---

Tags

phpphpcmsswooleswoole-cmsyiiyii2yii2-swooleyii2cmsyiicmsphpcmsproject templateyii2 cmsphp frameworkyii2 advancedPHP CMSfeehifeehicms

### Embed Badge

![Health badge](/badges/feehi-cms/health.svg)

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

###  Alternatives

[skeeks/cms

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

13725.8k65](/packages/skeeks-cms)[craftcms/cms

Craft CMS

3.6k3.7M3.3k](/packages/craftcms-cms)[yii2-starter-kit/yii2-starter-kit

Yii2 Starter Kit Application Template

1.4k6.6k](/packages/yii2-starter-kit-yii2-starter-kit)[luyadev/luya-module-cms

The LUYA CMS module provides a full functional Content Management System for adding contents based on blocks.

32181.3k18](/packages/luyadev-luya-module-cms)[izyue/yii2-app-advanced

Yii 2 Advanced Project Template

1291.9k](/packages/izyue-yii2-app-advanced)

PHPackages © 2026

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