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

ActiveYii2-extension[Framework](/categories/framework)

funson86/yii2-cms
=================

Yii2 Cms for other application

2.0.1(11y ago)201.1k↓33.3%16[2 issues](https://github.com/funson86/yii2-cms/issues)1Apache-2.0PHP

Since Sep 12Pushed 11y ago5 watchersCompare

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

READMEChangelog (2)Dependencies (3)Versions (3)Used By (1)

Yii2 Cms -under development
===========================

[](#yii2-cms--under-development)

Yii2 Cms for other application, especially for [Yii2 Adminlte](https://github.com/funson86/yii2-adminlte)

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist funson86/yii2-cms "*"

```

or add

```
"funson86/yii2-cms": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

### Migration

[](#migration)

Migration run

```
php yii migrate --migrationPath=@funson86/cms/migrations
```

### Config url rewrite in /common/config/main.php

[](#config-url-rewrite-in-commonconfigmainphp)

```
    'timeZone' => 'Asia/Shanghai', //time zone affect the formatter datetime format
    'components' => [
        'urlManager' => [
            'enablePrettyUrl' => true,
            'showScriptName' => false,
            'rules' => [
                '/' => '/view',
                '//' => '/',
                '/' => '/',
            ],
        ],
        'formatter' => [ //for the showing of date datetime
            'dateFormat' => 'yyyy-MM-dd',
            'datetimeFormat' => 'yyyy-MM-dd HH:mm:ss',
            'decimalSeparator' => ',',
            'thousandSeparator' => ' ',
            'currencyCode' => 'CNY',
        ],
    ],
```

### Config backend modules in backend/config/main.php

[](#config-backend-modules-in-backendconfigmainphp)

```
    'modules' => [
        'cms' => [
            'class' => 'funson86\cms\Module',
            'controllerNamespace' => 'funson86\cms\controllers\backend'
        ],
    ],
```

### Config frontend modules in frontend/config/main.php

[](#config-frontend-modules-in-frontendconfigmainphp)

```
    'defaultRoute' => 'cms', //set cms as default route
    'modules' => [
        'cms' => [
            'class' => 'funson86\cms\Module',
            'controllerNamespace' => 'funson86\cms\controllers\frontend'
        ],
    ],
```

### Add yii2-cms params in /frontend/config/params.php.

[](#add-yii2-cms-params-in-frontendconfigparamsphp)

```
return [
    'cmsTitle' => 'HikeCms',
    'cmsTitleSeo' => 'Simple Cms based on Yii2',
    'cmsFooter' => 'Copyright &copy; ' . date('Y') . ' by ahuasheng on Yii2. All Rights Reserved.',
    'cmsPostPageCount' => '2',
    'cmsLinks' => [
        'Google' => 'http://www.google.com',
        'Funson86 Cms' => 'http://github.com/funson86/yii2-cms',
    ],
];
```

### Access Url

[](#access-url)

1. backend :
    - Catalog :
    - Show :
2. frontend :

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 96% 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 ~140 days

Total

2

Last Release

4116d ago

Major Versions

V1.0 → 2.0.12015-01-31

### Community

Maintainers

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

---

Top Contributors

[![funson86](https://avatars.githubusercontent.com/u/6244263?v=4)](https://github.com/funson86 "funson86 (24 commits)")[![tarleb](https://avatars.githubusercontent.com/u/507994?v=4)](https://github.com/tarleb "tarleb (1 commits)")

---

Tags

cmsyii2extension

### Embed Badge

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

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

###  Alternatives

[skeeks/cms

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

13825.6k46](/packages/skeeks-cms)[yeesoft/yii2-yee-cms

Yee CMS Based on Yii 2 Advanced Project Template

1464.0k](/packages/yeesoft-yii2-yee-cms)[infoweb-internet-solutions/yii2-cms

CMS module for Yii2

461.7k8](/packages/infoweb-internet-solutions-yii2-cms)

PHPackages © 2026

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