PHPackages                             mecsu/yii2-pages - 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. mecsu/yii2-pages

ActiveYii2-extension

mecsu/yii2-pages
================

Manage static application pages

07PHP

Since Jul 6Pushed 2y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

[![Yii2](https://camo.githubusercontent.com/dccea8d8aeed2f3bbad8d539958795bf54a03a62c61f496084516c1b1845a9ee/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f72657175697265642d596969325f76322e302e33332d626c75652e737667)](https://packagist.org/packages/yiisoft/yii2)[![Downloads](https://camo.githubusercontent.com/777131f8d59a93a6016bb095d20b5d24ec075e7b2dfbc82dc338a31987f1da74/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f77646d672f796969322d70616765732e737667)](https://packagist.org/packages/wdmg/yii2-pages)[![Packagist Version](https://camo.githubusercontent.com/926d19ba8ce61f130ce31fddf8c03e8c12fdb77725721d6b38f3cf64ac3ca88a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f77646d672f796969322d70616765732e737667)](https://packagist.org/packages/wdmg/yii2-pages)[![Progress](https://camo.githubusercontent.com/d2c102b075c16f8a841e697b04c43bc93c8d092c5795ad8b3090d7fa993c258a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70726f67726573732d72656164795f746f5f7573652d677265656e2e737667)](https://camo.githubusercontent.com/d2c102b075c16f8a841e697b04c43bc93c8d092c5795ad8b3090d7fa993c258a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70726f67726573732d72656164795f746f5f7573652d677265656e2e737667)[![GitHub license](https://camo.githubusercontent.com/83e22182f87f5cd912c982b61b4ee50d9538c6ce879855e58bfd05aabe7c9bca/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f77646d672f796969322d70616765732e737667)](https://github.com/wdmg/yii2-pages/blob/master/LICENSE)

[![Yii2 Pages](./docs/images/yii2-pages.png)](./docs/images/yii2-pages.png)

Yii2 Pages
==========

[](#yii2-pages)

Page manager for Yii2.

This module is an integral part of the [Butterfly.СMS](https://butterflycms.com/) content management system, but can also be used as an standalone extension.

Copyrights (c) 2019-2021 [W.D.M.Group, Ukraine](https://wdmg.com.ua/)

Requirements
============

[](#requirements)

- PHP 5.6 or higher
- Yii2 v.2.0.33 and newest
- [Yii2 Base](https://github.com/wdmg/yii2-base) module (required)
- [Yii2 Translations](https://github.com/wdmg/yii2-translations) module (optionaly)
- [Yii2 Editor](https://github.com/wdmg/yii2-editor) widget
- [Yii2 SelectInput](https://github.com/wdmg/yii2-selectinput) widget

Installation
============

[](#installation)

To install the module, run the following command in the console:

`$ composer require "wdmg/yii2-pages"`

After configure db connection, run the following command in the console:

`$ php yii pages/init`

And select the operation you want to perform:

1. Apply all module migrations
2. Revert all module migrations

Migrations
==========

[](#migrations)

In any case, you can execute the migration and create the initial data, run the following command in the console:

`$ php yii migrate --migrationPath=@vendor/wdmg/yii2-pages/migrations`

Configure
=========

[](#configure)

To add a module to the project, add the following data in your configuration file:

```
'modules' => [
    ...
    'pages' => [
        'class' => 'wdmg\pages\Module',
        'routePrefix' => 'admin',
        'baseRoute'  => '/pages', // route for frontend (string or array), use "/" - for root
        'baseLayout' => '@app/views/layouts/main', // path to default layout for render in frontend
        'supportLocales' => ['ru-RU', 'uk-UA', 'en-US'] // list of support locales for multi-language versions
    ],
    ...
],

```

Routing
=======

[](#routing)

Use the `Module::dashboardNavItems()` method of the module to generate a navigation items list for NavBar, like this:

```

```

Status and version \[ready to use\]
===================================

[](#status-and-version-ready-to-use)

- v.1.2.5 - RBAC implementation
- v.1.2.4 - URL redirect notify, defaultController property, update dependencies and README.md
- v.1.2.3 - Update README.md and dependencies
- v.1.2.2 - Added AliasInput::widget()
- v.1.2.1 - Rebased to ActiveRecordML model
- v.1.2.0 - Multi-language implementation
- v.1.1.12 - Log activity
- v.1.1.11 - Added pagination, up to date dependencies
- v.1.1.10 - Refactoring. Migrations bugfix
- v.1.1.9 - Added multiple nesting for pages
- v.1.1.8 - Added support for Yandex.Turbo and Google AMP modules
- v.1.1.7 - Added support for Sitemap module

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 Bus Factor1

Top contributor holds 93.2% 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/269eb90fdbaab7272bc201e905006d2b773d463ea5d38f6104ee4ef7e4676479?d=identicon)[mecsu](/maintainers/mecsu)

---

Top Contributors

[![alex-wdmg](https://avatars.githubusercontent.com/u/1635637?v=4)](https://github.com/alex-wdmg "alex-wdmg (68 commits)")[![xuanhnvt](https://avatars.githubusercontent.com/u/6037186?v=4)](https://github.com/xuanhnvt "xuanhnvt (5 commits)")

### Embed Badge

![Health badge](/badges/mecsu-yii2-pages/health.svg)

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

PHPackages © 2026

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