PHPackages                             asinfotrack/yii2-article - 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. asinfotrack/yii2-article

ActiveYii2-extension

asinfotrack/yii2-article
========================

Yii2-article is a module offering basic CMS-functionality

1.0.2(4y ago)66252[5 PRs](https://github.com/asinfotrack/yii2-article/pulls)MITPHPPHP &gt;=7.1.0

Since Mar 12Pushed 3y ago7 watchersCompare

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

READMEChangelog (10)Dependencies (5)Versions (31)Used By (0)

Yii2-article
============

[](#yii2-article)

Yii2-article is a lightweight cms extension

Installation
------------

[](#installation)

### Basic installation

[](#basic-installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
$ composer require asinfotrack/yii2-article
```

or add

```
"asinfotrack/yii2-article": "~1.0.1"

```

to the `require` section of your `composer.json` file.

### Migration

[](#migration)

After downloading you need to apply the migration creating the required tables:

```
yii migrate --migrationPath=@vendor/asinfotrack/yii2-article/migrations

```

To remove the table just do the same migration downwards.

### Add the module to the yii-config

[](#add-the-module-to-the-yii-config)

```
    'modules'=>[

        //your other modules...

        'article'=>[
            'class'=>'asinfotrack\yii2\article\Module',

            'userRelationCallback'=>function ($model, $attribute) {
                return $model->hasOne('app\models\User', ['id'=>$attribute]);
            },
            'backendArticleAccessControl' = [
                'class'=>'yii\filters\AccessControl',
                'rules'=>[
                    ['allow'=>true, 'roles'=>['@']],
                ],
            ],
            'backendArticleCategoryAccessControl' = [
                'class'=>'yii\filters\AccessControl',
                'rules'=>[
                    ['allow'=>true, 'roles'=>['@']],
                ],
            ],

            'components'=>[
                //configuration of the renderer
                'renderer'=>[
                    'class'=>'asinfotrack\yii2\article\components\ArticleRenderer',
                    'addDataAttributesToArticleTagOptions'=>true,
                    'showDebugTags'=>false,
                    'placeholderCallbackMap'=>[
                        //example for a custom placeholder for an image tag
                        'img'=>function ($params) {
                            return Html::img($params[0]);
                        },

                        //your other custom placeholder tags here...
                    ],
                ],
            ],
        ],
    ],
```

For a full list of options, see the attributes of the classes within the module. Especially check the classes `asinfotrack\yii2\article\Module` and `asinfotrack\yii2\article\components\ArticleRenderer`. Some examples are provided below.

### Bootstrapping the module

[](#bootstrapping-the-module)

This step is optional and only necessary when you want to use the `ArticleAction` in a controller outside the actual module.

Add the module to the bootstrap-array of your yii-config to ensure it is loaded when the third party controller accesses the `ArticleRender`. Make sure you use the same module-ID as you use in the step right above.

```
'bootstrap'=>['log', 'article'],
```

Changelog
---------

[](#changelog)

[Learn about the latest improvements](CHANGELOG.md).

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 56% 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 ~52 days

Recently: every ~160 days

Total

24

Last Release

1732d ago

Major Versions

0.8.20 → 1.0.02020-01-20

PHP version history (2 changes)0.8.0PHP &gt;=5.4.0

1.0.0PHP &gt;=7.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/32196c480a4cca0724afc5982064d2f02aa2975f66e5bef343f7f72f6cefaf08?d=identicon)[asinfotrack](/maintainers/asinfotrack)

---

Top Contributors

[![pasci84](https://avatars.githubusercontent.com/u/6659672?v=4)](https://github.com/pasci84 "pasci84 (42 commits)")[![Isitar](https://avatars.githubusercontent.com/u/16210003?v=4)](https://github.com/Isitar "Isitar (20 commits)")[![tomlutzenberger](https://avatars.githubusercontent.com/u/5536910?v=4)](https://github.com/tomlutzenberger "tomlutzenberger (5 commits)")[![CmdrClippy](https://avatars.githubusercontent.com/u/36159182?v=4)](https://github.com/CmdrClippy "CmdrClippy (3 commits)")[![leonardoparrino](https://avatars.githubusercontent.com/u/36159182?v=4)](https://github.com/leonardoparrino "leonardoparrino (3 commits)")[![gisarah](https://avatars.githubusercontent.com/u/50887538?v=4)](https://github.com/gisarah "gisarah (2 commits)")

---

Tags

bundlecmsyii2Behaviorwidgetarticleaction

### Embed Badge

![Health badge](/badges/asinfotrack-yii2-article/health.svg)

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13825.6k47](/packages/skeeks-cms)[asinfotrack/yii2-audittrail

Yii2-audittrail is a behavior and a set of widgets to track all modifications performed on a model

1727.0k](/packages/asinfotrack-yii2-audittrail)[sjaakp/yii2-sortable-behavior

Sort ActiveRecords and related records in Yii2.

36144.7k](/packages/sjaakp-yii2-sortable-behavior)[sjaakp/yii2-taggable

Manage tags of ActiveRecord in Yii2.

3030.6k](/packages/sjaakp-yii2-taggable)[slatiusa/yii2-nestable

Yii 2.0 implementation of nested set behavior using jquery.nestable plugin.

1918.1k2](/packages/slatiusa-yii2-nestable)

PHPackages © 2026

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