PHPackages                             pantera-digital/yii2-content-kit - 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. pantera-digital/yii2-content-kit

ActiveYii2-extension

pantera-digital/yii2-content-kit
================================

15501PHP

Since Nov 8Pushed 5y ago3 watchersCompare

[ Source](https://github.com/pantera-digital/yii2-content-kit)[ Packagist](https://packagist.org/packages/pantera-digital/yii2-content-kit)[ RSS](/packages/pantera-digital-yii2-content-kit/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (4)Used By (0)

yii2-content-kit
================

[](#yii2-content-kit)

Модуль для управления контентом сайта: страницы, блоки, меню

Модуль зависит от `pantera-digital/yii2-media` и `pantera-digital/yii2-seo`, подробнее о них можно узнать здесь:

### Установка модуля

[](#установка-модуля)

Установить и настроить модуль

Установить и настроить модуль

Выполните команду composer:

```
composer require pantera-digital/yii2-content-kit

```

Или добавьте в composer.json

```
"pantera-digital/yii2-content-kit": "@dev"

```

и выполните команду

```
composer update

```

### Запустить миграции

[](#запустить-миграции)

```
php yii migrate --migrationPath=vendor/pantera-digital/yii2-content-kit/migrations

```

или добавить в конфиг консоли

```
'controllerMap' => [
    'migrate' => [
        'class' => yii\console\controllers\MigrateController::className(),
        'migrationPath' => [
            '@pantera/content/migrations',
        ],
    ],
],

```

и выполнить

```
php yii migrate

```

### Настроить модуль Media

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

 - здесь описание настройки

### Сконфигурировать модули frontend и backend

[](#сконфигурировать-модули-frontend-и-backend)

Добавить в конфиг frontend приложения

```
    'content' => [
        'class' => \pantera\content\Module::class,
    ],

```

Добавить в конфиг backend приложения

```
    'content' => [
        'class' => \pantera\content\admin\Module::class,
        'permissions' => ['admin'],
        'useBlock' => true,     // по умолчанию true
        'useSlider' => true,    // по умолчанию true
        'useMedia' => true,     // по умолчанию true
        'useSeo' => true,       // по умолчанию true
    ],

```

### Конфигурация frontend приложения

[](#конфигурация-frontend-приложения)

Добавить UrlManager в rules приложения

```
'urlManager' => [
    'rules' => [
        [
            'class' => pantera\content\components\UrlManager::class,
        ],
    ],
],

```

### Переопределение вью страницы

[](#переопределение-вью-страницы)

в конфиг приложения добавить

```
'components' => [
    'view' => [
        'class' => 'yii\web\View',
        'theme' => [
            'pathMap' => [
                '@pantera/content/views/view' => '@frontend/views/content/view',
            ],
        ],
    ],
],

```

Новый файл должен называть index--id-{id}, index--{slug} или index--type-{type}

- -id идентификатор записи
- -slug актуальный алиас записи
- -type ключ типа

### Виджеты

[](#виджеты)

#### Slider

[](#slider)

```

```

Параметры

- $pluginOptions - Настройка плагина карусели
- $options - Массив параметров для контейнера

#### Block

[](#block)

```

```

Параметры

- $position - Позиция
- $ids - Идентификатор или набор идентификаторов
- $activatedByUrl - Флаг что нужно активировать проверку по url
- $layout - Шаблон обертка над блоками

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 70.6% 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://avatars.githubusercontent.com/u/642519?v=4)[Alex Kostin](/maintainers/webmayak)[@webmayak](https://github.com/webmayak)

---

Top Contributors

[![Singletonn](https://avatars.githubusercontent.com/u/9639275?v=4)](https://github.com/Singletonn "Singletonn (48 commits)")[![webmayak](https://avatars.githubusercontent.com/u/642519?v=4)](https://github.com/webmayak "webmayak (16 commits)")[![numkms](https://avatars.githubusercontent.com/u/22604903?v=4)](https://github.com/numkms "numkms (2 commits)")[![repinsky](https://avatars.githubusercontent.com/u/30492421?v=4)](https://github.com/repinsky "repinsky (2 commits)")

### Embed Badge

![Health badge](/badges/pantera-digital-yii2-content-kit/health.svg)

```
[![Health](https://phpackages.com/badges/pantera-digital-yii2-content-kit/health.svg)](https://phpackages.com/packages/pantera-digital-yii2-content-kit)
```

PHPackages © 2026

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