PHPackages                             vladkukushkin/yii2-articles - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. vladkukushkin/yii2-articles

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

vladkukushkin/yii2-articles
===========================

Yii2 Articles to create, manage, and delete articles in a Yii2 site.

v0.6.1(10y ago)118BSD 3-ClausePHP

Since May 22Pushed 10y ago1 watchersCompare

[ Source](https://github.com/vladkukushkin/yii2-articles)[ Packagist](https://packagist.org/packages/vladkukushkin/yii2-articles)[ Docs](https://github.com/cinghie/yii2-articles)[ RSS](/packages/vladkukushkin-yii2-articles/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (9)Versions (10)Used By (0)

Yii2 Articles
=============

[](#yii2-articles)

Yii2 Articles to create, manage, and delete articles in a Yii2 site.

- Create, edit and delete articles
- Article with attachments, image, gallery, hits
- Manage categories and subcategories
- Advanced Access Permission
- Approval
- Multi-Language with I18N
- Extra Field Management
- SEO Optimization

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

[](#installation)

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

Either run

```
$ php composer.phar require vladkukushkin/yii2-articles "*"

```

or add

```
"vladkukushkin/yii2-articles": "*"

```

Configuration
-------------

[](#configuration)

### 1. Images folder

[](#1-images-folder)

Copy img folder to your webroot

### 2. Update yii2 articles database schema

[](#2-update-yii2-articles-database-schema)

Make sure that you have properly configured `db` application component and run the following command:

```
$ php yii migrate/up --migrationPath=@vendor/vladkukushkin/yii2-articles/migrations

```

### 3. Set configuration file

[](#3-set-configuration-file)

Set on your configuration file, in modules section. 'categoryImagePath' and 'categoryImageURL' must be set on the same folder. 'itemImagePath' and 'itemImageURL' must be set on the same folder. In this case you`ll be able to save images inside your text. This is requirement of vova07/imperavi-widget.

```
'modules' => [

	// Module Articles
	'articles' => [
		'class' => 'vladkukushkin\articles\Articles',
		'userClass' => 'dektrium\user\models\User',

		// Select Languages allowed
		'languages' => [
			"it-IT" => "it-IT",
			"en-GB" => "en-GB",
			"ru-RU" => "ru-Ru"
		],

		// Select Editor: no-editor, imperavi
		'editor' => 'imperavi',

		// Select Path To Upload Category Image
        'categoryImagePath' => '@webroot/img/articles/categories/',
        // Select URL To Upload Category Image
        'categoryImageURL'  => '@web/img/articles/categories/',
        // Select Path To Upload Category Thumb
        'categoryThumbPath' => '@webroot/img/articles/categories/thumb/',
        // Select URL To Upload Category Image
        'categoryThumbURL'  => '@web/img/articles/categories/thumb/',

        // Select Path To Upload Item Image
        'itemImagePath' => '@webroot/img/articles/items/',
        // Select URL To Upload Item Image
        'itemImageURL'  => '@web/img/articles/items/',
        // Select Path To Upload Item Thumb
        'itemThumbPath' => '@webroot/img/articles/items/thumb/',
        // Select URL To Upload Item Thumb
        'itemThumbURL'  => '@web/img/articles/items/thumb/',

		// Select Path To Upload Attachments
        'attachPath' => '@webroot/attachments/',
		// Select URL To Upload Attachment
        'attachURL' => '@web/img/articles/items/',
		// Select Image Types allowed
		'attachType' => 'application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, .csv, .pdf, text/plain, .jpg, .jpeg, .gif, .png',

		// Select Image Name: categoryname, original, casual
		'imageNameType' => 'categoryname',
		// Select Image Types allowed
		'imageType'     => 'jpg,jpeg,gif,png',
		// Thumbnails Options
		'thumbOptions'  => [
			'small'  => ['quality' => 100, 'width' => 150, 'height' => 100],
			'medium' => ['quality' => 100, 'width' => 200, 'height' => 150],
			'large'  => ['quality' => 100, 'width' => 300, 'height' => 250],
			'extra'  => ['quality' => 100, 'width' => 400, 'height' => 350],
		],

        // Show Titles in the views
        'showTitles' => true,
	],

	// Module Kartik-v Grid
	'gridview' =>  [
		'class' => '\kartik\grid\Module',
	],

	// Module Kartik-v Markdown Editor
	'markdown' => [
		'class' => 'kartik\markdown\Module',
	],

]

```

### Advanced Template Recommended Configuration

[](#advanced-template-recommended-configuration)

[Advanced Template recommended configuration](docs/advanced-template-recommended-configuration.md)

URL Rules
---------

[](#url-rules)

```
'components' => [

        // Url Manager
        'urlManager' => [
            // Disable index.php
            'showScriptName' => false,
            // Disable r= routes
            'enablePrettyUrl' => true,
            // Disable site/ from the URL
            'rules' => [
                '/' => 'articles/categories/view',
                '//' => 'articles/items/view',
            ],
        ],
    ],

```

Users Auth
----------

[](#users-auth)

### Articles Permissions

[](#articles-permissions)

createpublishupdatedeleteindexviewadminyesallallallyesyeseditoryesallallhisyesyespublisheryeshishisnohisyesauthoryesnohisnohisyes### Categories Permissions

[](#categories-permissions)

createpublishupdatedeleteindexviewadminyesyesyesallyesyeseditoryesnoyesnoyesyespublishernonononoyesyesauthornonononoyesyes### Users Types

[](#users-types)

The migrations add to the database 4 types of users:

1. Admin:
    - Can Create Categories
    - Can Publish Categories
    - Can Delete Categories
    - Can Update Categories
    - Can Index Categories
    - Can Create Articles
    - Can Publish all Articles
    - Can Update all Articles
    - Can Delete all Articles
    - Can Index all Articles
    - Can View all Articles
2. Editor:
    - Can Create Categories
    - Can't Publish Categories
    - Can't Delete Categories
    - Can Update Categories
    - Can Index Categories
    - Can Create Articles
    - Can Publish his Articles
    - Can Update all Articles
    - Can Delete his Articles
    - Can Index Articles
    - Can View all Articles
3. Publisher:
    - Can't Create Categories
    - Can't Publish Categories
    - Can't Delete Categories
    - Can't Update Categories
    - Can Index Categories
    - Can Create Articles
    - Can Publish his Articles
    - Can Update his Articles
    - Can Delete his Articles
    - Can Index his Articles
    - Can View all Articles
4. Author:
    - Can't Create Categories
    - Can't Publish Categories
    - Can't Delete Categories
    - Can't Update Categories
    - Can Index Categories
    - Can Create Articles
    - Can't Publish his Articles
    - Can Update his Articles
    - Can't Delete Articles
    - Can't Index Articles
    - Can View Articles

LINKS
-----

[](#links)

- Admin Panel: PathToApp/index.php?r=articles
- Admin Panel with Pretty Urls: PathToApp/articles
- Categories: PathToApp/index.php?r=articles/categories
- Categories with Pretty Urls: PathToApp/articles/categories
- Items: PathToApp/index.php?r=articles/items
- Items with Pretty Urls: PathToApp/articles/items
- Attachments: PathToApp/index.php?r=articles/attachments
- Attachments with Pretty Urls: PathToApp/articles/attachments

CHANGELOG
---------

[](#changelog)

- Version 0.6.2 - Implementing Pull Request #6
- Version 0.6.1 - Fixed #4 #5 and adding active/deactive buttons
- Version 0.6.0 - Adding Url Rules
- Version 0.5.2 - Adding Attachments
- Version 0.6.2 - Adding Access to Categories and Articles
- Version 0.5.0 - Update Articles index, Categories index, Refactor RBAC functions
- Version 0.4.1 - Update RBAC functions
- Version 0.4.0 - Adding first RBAC functions
- Version 0.3.1 - Adding image to categories view
- Version 0.3.0 - Deny to not logged to index, create, update, delete; only view permitted
- Version 0.2.7 - Update Articles Params
- Version 0.2.6 - Update Migrations
- Version 0.2.5 - Update Asset Depends
- Version 0.2.4 - Update Italian Translations
- Version 0.2.3 - Update Asset setting articles.css after bootstrap
- Version 0.2.2 - Update Item View
- Version 0.2.1 - Adding video\_type field in Items and fixed modified
- Version 0.2.0 - Adding Upload Image in Items
- Version 0.1.14 - Cleaning Categories Code
- Version 0.1.13 - Generalizing Upload File Field
- Version 0.1.12 - Adding Migrations Example
- Version 0.1.11 - Fixing Delete Image in Categories
- Version 0.1.10 - Adding Admin Menù
- Version 0.1.9 - Adding Attachment's Files
- Version 0.1.8 - Refactoring Categories Upload Image
- Version 0.1.7 - Fixing TinyMCE problems
- Version 0.1.6 - Adding Imperavi Redactor as Editor in Categories and Items
- Version 0.1.5 - Update Item Created and Modified
- Version 0.1.4 - Adding Item Variables in Module
- Version 0.1.3 - Refactoring Module Variables
- Version 0.1.2 - Added Facebook and Twitter Item View
- Version 0.1.1 - Added Attachment's Table in database
- Version 0.1.0 - Refactoring Project
- Version 0.0.7 - Added Image Upload for Categories
- Version 0.0.6 - Added Composer
- Version 0.0.5 - Fixed problem with Upload Image
- Version 0.0.4 - Added editors ckeditor, tinymce, markdown from other Packages
- Version 0.0.3 - Various Fix and Update for Categories Views
- Version 0.0.2 - Added multi-language with I18N
- Version 0.0.1 - Initial Releases

LIBRARIES NEEDED
----------------

[](#libraries-needed)

- Yii2 Grid:
- Yii2 Widget:
- Yii2 mPDF:
- Yii2 Imperavi Redactor:

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 99% 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 ~36 days

Recently: every ~16 days

Total

9

Last Release

3771d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9193665?v=4)[vladkukushkin](/maintainers/vladkukushkin)[@vladkukushkin](https://github.com/vladkukushkin)

---

Top Contributors

[![cinghie](https://avatars.githubusercontent.com/u/2445152?v=4)](https://github.com/cinghie "cinghie (190 commits)")[![quato](https://avatars.githubusercontent.com/u/3704768?v=4)](https://github.com/quato "quato (1 commits)")[![RSol](https://avatars.githubusercontent.com/u/535813?v=4)](https://github.com/RSol "RSol (1 commits)")

---

Tags

yii2modulecontentsarticlesseocategory

### Embed Badge

![Health badge](/badges/vladkukushkin-yii2-articles/health.svg)

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

###  Alternatives

[cinghie/yii2-traits

Yii2 Traits

116.9k8](/packages/cinghie-yii2-traits)[sintret/yii2-gii-adminlte

Yii2 Generator extension for Gii plugin with adminlte and base on dynagrid. upload excel to system to with log upload

209.6k2](/packages/sintret-yii2-gii-adminlte)[lowbase/yii2-user

Yii2 user module

131.5k2](/packages/lowbase-yii2-user)

PHPackages © 2026

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