PHPackages                             wdmg/yii2-news - 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. wdmg/yii2-news

ActiveYii2-extension

wdmg/yii2-news
==============

News manager

2.0.1(2y ago)262921MITPHP

Since Jul 30Pushed 2y ago3 watchersCompare

[ Source](https://github.com/wdmg/yii2-news)[ Packagist](https://packagist.org/packages/wdmg/yii2-news)[ Docs](https://github.com/wdmg/yii2-news)[ RSS](/packages/wdmg-yii2-news/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (10)Versions (19)Used By (1)

[![Yii2](https://camo.githubusercontent.com/3f29058a9886ae3e9efc09df82d551051f8ea6c8da1176d9e8ca8a64be6f9b40/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f72657175697265642d596969325f76322e302e34302d626c75652e737667)](https://packagist.org/packages/yiisoft/yii2)[![Downloads](https://camo.githubusercontent.com/a0868bede13780cb934e887eed0aa2f006b86166844f022378dec05c1baadf43/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f77646d672f796969322d6e6577732e737667)](https://packagist.org/packages/wdmg/yii2-news)[![Packagist Version](https://camo.githubusercontent.com/bea3757a2f5148d1782eaec79e2f43a4097546cadd0c865de524280e5d10dfb6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f77646d672f796969322d6e6577732e737667)](https://packagist.org/packages/wdmg/yii2-news)[![Progress](https://camo.githubusercontent.com/d2c102b075c16f8a841e697b04c43bc93c8d092c5795ad8b3090d7fa993c258a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70726f67726573732d72656164795f746f5f7573652d677265656e2e737667)](https://camo.githubusercontent.com/d2c102b075c16f8a841e697b04c43bc93c8d092c5795ad8b3090d7fa993c258a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70726f67726573732d72656164795f746f5f7573652d677265656e2e737667)[![GitHub license](https://camo.githubusercontent.com/43049c35e8b5434626a6f97d0e0157d828ae884a1f2e3ef6791ef0b8da3dfab1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f77646d672f796969322d6e6577732e737667)](https://github.com/wdmg/yii2-news/blob/master/LICENSE)

[![Yii2 News Module](./docs/images/yii2-news.png)](./docs/images/yii2-news.png)

Yii2 News
=========

[](#yii2-news)

News module 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) widget

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

[](#installation)

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

`$ composer require "wdmg/yii2-news"`

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

`$ php yii news/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/wdmg/yii2-news/migrations`

Configure
=========

[](#configure)

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

```
'modules' => [
    ...
    'news' => [
        'class' => 'wdmg\news\Module',
        'routePrefix' => 'admin',
        'baseRoute'  => '/news', // default routes to rendered news in @frontend (use "/" - for root)
        'baseLayout' => '@app/views/layouts/main', // default layout to render news in @frontend
        'imagePath' => '/uploads/news', // the default path to save news thumbnails in @webroot
        'supportLocales' => ['ru-RU', 'uk-UA', 'en-US'] // list of support locales for multi-language versions
    ],
    ...
],

```

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.2.0.1 - Fix FK in migrations
- v.2.0.0 - Some fix, update copyrights
- v.1.1.4 - RBAC implementation
- v.1.1.3 - URL redirect notify, defaultController property, update dependencies and README.md
- v.1.1.2 - Update README.md and dependencies

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~84 days

Recently: every ~291 days

Total

18

Last Release

1040d ago

Major Versions

0.0.1 → 1.0.02019-07-30

1.1.4 → 2.0.02023-06-25

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1635637?v=4)[Alexsander Vyshnyvetskyy](/maintainers/alex-wdmg)[@alex-wdmg](https://github.com/alex-wdmg)

---

Top Contributors

[![alex-wdmg](https://avatars.githubusercontent.com/u/1635637?v=4)](https://github.com/alex-wdmg "alex-wdmg (58 commits)")

---

Tags

yii2 newswdmgyii2-news

### Embed Badge

![Health badge](/badges/wdmg-yii2-news/health.svg)

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

PHPackages © 2026

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