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

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

bupy7/yii2-pages
================

A static pages module implements CRUD using Imperavi Redactor.

1.4.1(5y ago)159.1k↓25%22[2 PRs](https://github.com/bupy7/yii2-pages/pulls)1BSD-3-ClausePHPPHP ^5.6 || ^7.0

Since May 4Pushed 5y ago4 watchersCompare

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

READMEChangelog (10)Dependencies (6)Versions (12)Used By (1)

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)[![Build Status](https://camo.githubusercontent.com/6d19e8fb4f81277b053f605ac1e3f28014c18eac3a1dab2cbe9d46f4c5fda99e/68747470733a2f2f7472617669732d63692e6f72672f62757079372f796969322d70616765732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/bupy7/yii2-pages)[![Coverage Status](https://camo.githubusercontent.com/e1a17f34018d54d7205cc1831ae06aa1c82a68967e2d70f4dd6b015014dbe653/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f62757079372f796969322d70616765732f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/bupy7/yii2-pages?branch=master)

A static pages module implements CRUD using 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 in your config file:**

```
'bootstrap' => ['pages'],

...

'modules' => [
    ...

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

> You must add the above config in your console config file to apply migrations.

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
```

> Without module in console config file this command will throw an exception.

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' => [
        'class' => 'bupy7\pages\Module',

        ...

        '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' => [
        'class' => 'bupy7\pages\Module',

        ...

        '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

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 92.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.

###  Release Activity

Cadence

Every ~185 days

Recently: every ~377 days

Total

11

Last Release

2176d ago

### Community

Maintainers

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

---

Top Contributors

[![bupy7](https://avatars.githubusercontent.com/u/5145037?v=4)](https://github.com/bupy7 "bupy7 (95 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)")[![i-panov](https://avatars.githubusercontent.com/u/16288735?v=4)](https://github.com/i-panov "i-panov (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

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/bupy7-yii2-pages/health.svg)](https://phpackages.com/packages/bupy7-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)
