PHPackages                             floor12/yii2-module-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. [Framework](/categories/framework)
4. /
5. floor12/yii2-module-pages

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

floor12/yii2-module-pages
=========================

Yii2 module to organize pages with sitemap, breadcrumbs and many more.

4.0.1(1y ago)23782[1 issues](https://github.com/floor12/yii2-module-pages/issues)2MITPHPCI failing

Since Jul 2Pushed 9mo ago1 watchersCompare

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

READMEChangelog (1)Dependencies (11)Versions (67)Used By (2)

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

[](#yii2-module-pages)

Модуль позволяет:

- организовать древовидную структуру страниц
- по-умолчанию страница содержит обычный текст, но может быть ссылаться на любые контроллеры
- организовать sitemap.xml
- для всех страниц организовать OpenGraph мета-теги
- строить хлебные крошки с валидной микроразметкой
- организовать редактирование структуры и контента страниц непосредственно на фронтенде в модальном окне

Установка
---------

[](#установка)

#### Ставим модуль

[](#ставим-модуль)

Выполняем команду

```
$ composer require floor12/yii2-module-pages
```

иди добавляем в секцию "requred" файла composer.json

```
"floor12/yii2-module-pages": "dev-master"
```

\###Выполняем миграцию для созданию необходимых таблиц

```
$ ./yii migrate --migrationPath=@vendor/floor12/yii2-module-pages/src/migrations
```

\###Добавляем модуль в конфиг приложения

```
'modules' => [
        'pages' => [
            'class' => 'floor12\pages\Module',
            'editRole' => '@',
        ],
    ]
    ...
```

Параметры:

1. `editRole` - роль пользователей, которым доступно управление. Можно использовать "@".

### Активируем компонент MetaMaster

[](#активируем-компонент-metamaster)

```
   'components' => [
        'metamaster' => [
            'class' => 'floor12\metamaster\MetaMaster',
            'siteName' => 'Your site name',
            'defaultImage' => '/design/export_logo.png',
        ],

```

`defaultImage` - путь к дефолтной картинке для Open Graph мета-тегов. `siteName` - название сайта для Open Graph мета-тегов.

\###Добавляем блок для роутинга

```
'urlManager' => [
            'enablePrettyUrl' => true,
            'showScriptName' => false,
            'rules' => [
                '/.html' => '/pages/page/view',
                '/sitemap.xml' => '/site/sitemap',
            ],
        ],

```

Использование
-------------

[](#использование)

@todo

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance43

Moderate activity, may be stable

Popularity17

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor1

Top contributor holds 99.3% 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 ~39 days

Recently: every ~26 days

Total

64

Last Release

371d ago

Major Versions

2.0.6 → 3.0.02023-08-30

2.1.0 → 3.0.12023-09-26

2.1.1 → 3.1.52024-05-17

3.3.1 → 4.0.02025-04-01

3.4.0 → 4.0.12025-05-06

### Community

Maintainers

![](https://www.gravatar.com/avatar/8dc98d778cb18db41a1e5b9df722c56f65f655de44fe0d581484cd8dea31b928?d=identicon)[floor12](/maintainers/floor12)

---

Top Contributors

[![floor12](https://avatars.githubusercontent.com/u/8406969?v=4)](https://github.com/floor12 "floor12 (137 commits)")[![phpshko](https://avatars.githubusercontent.com/u/9990396?v=4)](https://github.com/phpshko "phpshko (1 commits)")

---

Tags

yii2yiiyii 2floor12yii2 module

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[floor12/yii2-module-files

Yii2 module to upload and manage files to your models.

1612.4k6](/packages/floor12-yii2-module-files)

PHPackages © 2026

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