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

ActiveYii2-extension

feehi/cms-core
==============

Feehi CMS core

2.0.1.1(8y ago)03561BSD-3-ClauseJavaScriptPHP &gt;=5.4.0

Since Jul 12Pushed 8y ago1 watchersCompare

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

READMEChangelogDependencies (10)Versions (25)Used By (1)

FeehiCMS **[(English)](docs/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)

更新记录
----

[](#更新记录)

2.0.0 修复bug,增加1.0.0系列alpha、beta、rc版所有的功能

1.0.0rc2 修复bug

1.0.0rc1 优化使用

1.0.0beta 3 修复bug

1.0.0beta2 增加自定义图片类型设置,优化管理员角色创建和修改

1.0.0beta1 修复bug

1.0.0alpha3 重写文章tag,修复两次model validate

1.0.0alpha2 修复bug

1.0.0alpha1 增加restful api,单元测试,行为测试,验收测试,替换为yii2最新模板,优化composer安装依赖替换fxp/composer-asset-plugin为Asset Packagist,重写rbac权限管理替换为yii2内置实现

0.1.3 版本已经集成swoole作为FeehiCMS应用服务器，详细配置及使用参见[yii2-swoole](https://www.github.com/liufee/yii2-swoole)

帮助
--

[](#帮助)

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

功能
--

[](#功能)

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

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

快速体验
----

[](#快速体验)

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

    - php7.0.0
        - 后台
        - 前台 [http://demo.cms.feehi.com](http://demo.cms.feehi.com/)
        - api
    - swoole (docker)
        - swoole演示前台
        - swoole演示后台
    - php7.1.8 (docker)
        - 备用演示前台1
        - 备用演示api1
        - 备用演示后台1 [http://demo.cms.qq.feehi.com/api](http://demo.cms.qq.feehi.com/api/articles)
    - php5.4 (docker)
        - 备用演示前台2 [http://php54.demo.cms.qq.feehi.com](http://php54.demo.cms.qq.feehi.com/)
        - 备用演示后台2
        - 备用演示api2 [http://php54.demo.cms.qq.feehi.com/api](http://php54.demo.cms.qq.feehi.com/api/articles)
2. 使用Docker容器

    ```
    $ docker pull registry.cn-hangzhou.aliyuncs.com/liufee/cms
    $ docker run --name feehicms -h feehicms -itd -p 80:80 liufee/cms
    ```

安装
--

[](#安装)

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

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

    > 使用此方式安装，后台超管用户名和密码会在安装过程中让您填入

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

    > 使用此方式安装，默认的后台超级管理员用户名admin密码123456

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

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

    1. 使用composer下载创建FeehiCMS项目 **以下两个命令任选其一。如果喜欢简单且日后不需要升级FeehiCMS请选择命令一,如果日后需要平滑升级FeehiCMS请选择命令二**

        ```
            $ composer create-project feehi/cms webApp //此命令创建的FeehiCMS项目不能平滑升级新版本(目录结构简单,目前主力维护版本)
        ```

        ```
            $ composer create-project feehi/feehicms webApp //此命令创建的FeehiCMS项目能够通过运行composer update平滑升级到FeehiCMS新版本(FeehiCMS以composer包提供,未来可能主力维护此版本)
        ```
    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服务器(参加下面)
    4. 完成

附:web服务器配置(注意是设置"path/to/frontend/web为根目录)

- php内置web服务器(仅可用于开发环境,当您的环境中没有web服务器时)

```
 cd /path/to/cms
 php ./yii serve

 #至此启动成功，可以通过localhost:8080/和localhost:8080/admin来访问了，在线安装即访问localhost:8080/install.php
```

- Apache

```
 DocumentRoot "path/to/frontend/web"

     # 开启 mod_rewrite 用于美化 URL 功能的支持（译注：对应 pretty URL 选项）
     RewriteEngine on
     # 如果请求的是真实存在的文件或目录，直接访问
     RewriteCond %{REQUEST_FILENAME} !-f
     RewriteCond %{REQUEST_FILENAME} !-d
     # 如果请求的不是真实文件或目录，分发请求至 index.php
     RewriteRule . index.php

     # ...其它设置...

```

- Nginx

```
server {
    server_name  localhost;
    root   /path/to/frontend/web;
    index  index.php index.html index.htm;
    try_files $uri $uri/ /index.php?$args;

    location ~ /api/(?!index.php).*$ {
       rewrite /api/(.*) /api/index.php?r=$1 last;
    }

    location ~ \.php$ {
        fastcgi_pass   127.0.0.1:9000;
        fastcgi_index  index.php;
        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
        include        fastcgi_params;
        try_files $uri=404;
    }
}
```

运行测试
----

[](#运行测试)

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. 与上(仅运行单元测试,功能测试)命令一致

项目展示
----

[](#项目展示)

- [lcs消费金融](http://118.89.241.65/)
- [吉安市食品药品监督管理局](http://jamsda.jsz2.com:8011/)
- [微信公众号益乐游戏](http://www.ylegame.com/)
- [Usens Dev博客](http://dev.usensinc.com/)
- [最美容颜](http://www.zmface.com/)
- [云上旅游集团](http://www.ys517.cn/)
- [微信公众号蚂蚁鲜生](http://www.chijidun.com/)
- ......

运行效果
----

[](#运行效果)

[![后台](docs/backend.png)](docs/backend.png)

[![前台](docs/frontend.png)](docs/frontend.png)

[![后台文章编辑](docs/backend_article.png)](docs/backend_article.png)

[![后台角色编辑](docs/backend_role.png)](docs/backend_role.png)

[![后台自定义参数](docs/backend_custom_create.png)](docs/backend_custom_create.png)

[![后台文章编辑](docs/backend_custom_setting.png)](docs/backend_custom_setting.png)

[![后台文章编辑](docs/backend_log.png)](docs/backend_log.png)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity68

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~24 days

Recently: every ~8 days

Total

24

Last Release

3039d ago

Major Versions

0.1.3 → 1.0.0alpha12017-09-24

1.0.0rc2 → 2.0.02017-12-18

### Community

Maintainers

![](https://www.gravatar.com/avatar/0452fe858dc13954ce183f1dc537fdbb934a8d1255cb0a57d95256db00991609?d=identicon)[liufee](/maintainers/liufee)

---

Top Contributors

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

---

Tags

phpcmsproject templateyii2 cmsphp frameworkyii2 advancedPHP CMSfeehifeehicms

### Embed Badge

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

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

###  Alternatives

[feehi/cms

Feehi CMS Project Template

5323.0k](/packages/feehi-cms)[yii2-starter-kit/yii2-starter-kit

Yii2 Starter Kit Application Template

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

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

13825.6k47](/packages/skeeks-cms)[luyadev/luya-module-cms

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

32176.1k18](/packages/luyadev-luya-module-cms)[yeesoft/yii2-yee-cms

Yee CMS Based on Yii 2 Advanced Project Template

1464.0k](/packages/yeesoft-yii2-yee-cms)

PHPackages © 2026

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