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

ActiveYii2-extension

mecsu/yii2-blog
===============

Publications manager

010PHP

Since Jul 6Pushed 2y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

[![Yii2](https://camo.githubusercontent.com/3f29058a9886ae3e9efc09df82d551051f8ea6c8da1176d9e8ca8a64be6f9b40/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f72657175697265642d596969325f76322e302e34302d626c75652e737667)](https://packagist.org/packages/yiisoft/yii2)[![Downloads](https://camo.githubusercontent.com/24afe7dd1a7c94553abd92de64a08d893dcd28e89af897886d4865c5e2d95dac/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d656373752f796969322d626c6f672e737667)](https://packagist.org/packages/mecsu/yii2-blog)[![Packagist Version](https://camo.githubusercontent.com/6784aefcbb165e351e12c31a3227420860b2d0bd32811184fd05812a25542e25/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d656373752f796969322d626c6f672e737667)](https://packagist.org/packages/mecsu/yii2-blog)[![Progress](https://camo.githubusercontent.com/d2c102b075c16f8a841e697b04c43bc93c8d092c5795ad8b3090d7fa993c258a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70726f67726573732d72656164795f746f5f7573652d677265656e2e737667)](https://camo.githubusercontent.com/d2c102b075c16f8a841e697b04c43bc93c8d092c5795ad8b3090d7fa993c258a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70726f67726573732d72656164795f746f5f7573652d677265656e2e737667)[![GitHub license](https://camo.githubusercontent.com/8299c864abc2e5b94ef1117b73793462e6d07588b3651780b9b111c7057d84c4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d656373752f796969322d626c6f672e737667)](https://github.com/mecsu/yii2-blog/blob/master/LICENSE)

[![Yii2 Blog Module](./docs/images/yii2-blog.png)](./docs/images/yii2-blog.png)

Yii2 Blog
=========

[](#yii2-blog)

Publications manager for Yii2.

The module have multilanguage support and integration with Sitemaps, RSS-feeds, Google AMP and Yandex.Turbo modules.

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.40 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)
- [Yii2 TagsInput](https://github.com/wdmg/yii2-tagsinput) widget

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

[](#installation)

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

`$ composer require "mecsu/yii2-blog"`

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

`$ php yii blog/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/mecsu/yii2-blog/migrations`

Configure
=========

[](#configure)

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

```
'modules' => [
    ...
    'blog' => [
        'class' => 'mecsu\blog\Module',
        'routePrefix' => 'admin',
        'baseRoute'  => '/blog', // route for frontend (string or array), use "/" - for root
        'baseLayout' => '@app/views/layouts/main', // the default layout to render blog
        'imagePath' => '/uploads/blog' // the default path to save blog thumbnails in @webroot
    ],
    ...
],

```

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.4 - RBAC implementation
- v.1.2.3 - URL redirect notify, defaultController property, update dependencies and README.md
- v.1.2.2 - Fixed JsonValidator in dependencies
- v.1.2.1 - Added AliasInput::widget()
- v.1.2.0 - Multi-language support
- v.1.1.4 - Log activity
- v.1.1.3 - Added pagination
- v.1.1.2 - Added default sort and fix breadcrumbs
- v.1.1.1 - Filter posts by categories and tags (view dashboard)
- v.1.1.0 - Added CRUD for taxonomy (Categories, Tags)
- v.1.0.1 - Added migrations, CRUD and models for Categories, Tags

###  Health Score

14

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity21

Early-stage or recently created project

 Bus Factor1

Top contributor holds 84.5% 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 (49 commits)")[![xuanhnvt](https://avatars.githubusercontent.com/u/6037186?v=4)](https://github.com/xuanhnvt "xuanhnvt (8 commits)")[![mecsu](https://avatars.githubusercontent.com/u/121916943?v=4)](https://github.com/mecsu "mecsu (1 commits)")

### Embed Badge

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

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

PHPackages © 2026

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