PHPackages                             khr/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. khr/yii2-pages

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

khr/yii2-pages
==============

Module implements CRUD with static pages with uses Imperavi Redactor.

1.2.0(10y ago)032BSD-3-ClausePHP

Since May 4Pushed 8y ago1 watchersCompare

[ Source](https://github.com/KhristenkoYura/yii2-pages)[ Packagist](https://packagist.org/packages/khr/yii2-pages)[ Docs](https://github.com/bupy7/yii2-pages)[ RSS](/packages/khr-yii2-pages/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (9)Used By (0)

yii2-pages
==========

[](#yii2-pages)

[![Latest Stable Version](https://camo.githubusercontent.com/757bd9b06c083a895bde8b903d339e8c086279d2c4b24f7219c8b445162875e9/68747470733a2f2f706f7365722e707567782e6f72672f62757079372f796969322d70616765732f762f737461626c65)](https://packagist.org/packages/bupy7/yii2-page)[![Total Downloads](https://camo.githubusercontent.com/df4cc4b1217d8fb393cf6ca252a0aa90225233c65bbd4a3113bbc523a18a8d12/68747470733a2f2f706f7365722e707567782e6f72672f62757079372f796969322d70616765732f646f776e6c6f616473)](https://packagist.org/packages/bupy7/yii2-pages)[![Latest Unstable Version](https://camo.githubusercontent.com/f3356afd9744c2d1efa7b7391ef2042268d0d61fdd97b52b1fb5c0d0187fed9f/68747470733a2f2f706f7365722e707567782e6f72672f62757079372f796969322d70616765732f762f756e737461626c65)](https://packagist.org/packages/bupy7/yii2-pages)[![License](https://camo.githubusercontent.com/dece533ed6d7dd07355f1f0cc8bf8ec090775f7ad9d07e764f09584fc19d13bc/68747470733a2f2f706f7365722e707567782e6f72672f62757079372f796969322d70616765732f6c6963656e7365)](https://packagist.org/packages/bupy7/yii2-pages)

Module implements CRUD with static pages with uses Imperavi Redactor.

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist bupy7/yii2-pages "*"

```

or add

```
"bupy7/yii2-pages": "*"

```

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

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

[](#installation-1)

**Add module to your config file:**

```
'modules' => [
    ...

    'pages' => [
        'class' => 'bupy7\pages\Module',
    ],
]
```

By default module uses table name '{{%page}}'. If in your database this table is exist - change it adding to configuration of module new table name:

```
'modules' => [
    ...

    'pages' => [
        'class' => 'bupy7\pages\Module',
        'tableName' => '{{%your_table_name}}',
    ],
]
```

**Run migration**

```
./yii migrate/up --migrationPath=@bupy7/pages/migrations
```

Usage
-----

[](#usage)

In module two controllers: `default` and `manager`.

**manager** need for control the pages out of the control panel. You need protect it controller via `controllerMap` or override it for add behavior with `AccessControl`.

Example:

```
'modules' => [
    ...

    'pages' => [
        ...

        'controllerMap' => [
            'manager' => [
                'class' => 'bupy7\pages\controllers\ManagerController',
                'as access' => [
                    'class' => AccessControl::className(),
                    'rules' => [
                        [
                            'allow' => true,
                            'roles' => ['admin'],
                        ],
                    ],
                ],
            ],
        ],
    ],
],
```

**default** for display of pages to site. You need add url rules to file of config for getting content via aliases pages.

Example:

```
'urlManager' => [
    'rules' => [
        ...

        'pages/' => 'pages/default/index',
    ],
],
```

You can upload and add files/images via Imperavi Redactor, if enable it:

```
'modules' => [
    ...

    'pages' => [
        ...

        'pathToImages' => '@webroot/images',
        'urlToImages' => '@web/images',
        'pathToFiles' => '@webroot/files',
        'urlToFiles' => '@web/files',
        'uploadImage' => true,
        'uploadFile' => true,
        'addImage' => true,
        'addFile' => true,
    ],
],
```

Set up the custom language at Imperavi redactor:

```
'modules' => [
    ...

    'pages' => [
        'class' => 'bupy7\pages\Module',
        'imperaviLanguage' => 'es',
    ],
]
```

There is all list a languages here: `/vendor/vova07/yii2-imperavi-widget/src/assets/lang`.

License
-------

[](#license)

yii2-pages is released under the BSD 3-Clause License.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 84.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 ~56 days

Recently: every ~8 days

Total

7

Last Release

3686d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/42485a5f8dfbe47e393d931762ced0e99cd7c5c6e03f3a6f340d05d2e652a28e?d=identicon)[khristenkoyura](/maintainers/khristenkoyura)

---

Top Contributors

[![bupy7](https://avatars.githubusercontent.com/u/5145037?v=4)](https://github.com/bupy7 "bupy7 (74 commits)")[![KhristenkoYura](https://avatars.githubusercontent.com/u/570035?v=4)](https://github.com/KhristenkoYura "KhristenkoYura (7 commits)")[![xaerobiont](https://avatars.githubusercontent.com/u/5050758?v=4)](https://github.com/xaerobiont "xaerobiont (4 commits)")[![almix](https://avatars.githubusercontent.com/u/376809?v=4)](https://github.com/almix "almix (1 commits)")[![maxxer](https://avatars.githubusercontent.com/u/240201?v=4)](https://github.com/maxxer "maxxer (1 commits)")[![zacksleo](https://avatars.githubusercontent.com/u/3369169?v=4)](https://github.com/zacksleo "zacksleo (1 commits)")

---

Tags

staticyii2extensionmodulepages

### Embed Badge

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

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

###  Alternatives

[onmotion/yii2-telegram

Support chat for site based on Telegram bot

526.3k](/packages/onmotion-yii2-telegram)

PHPackages © 2026

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