PHPackages                             vlad-planet/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. vlad-planet/yii2-blog

ActiveYii2-extension

vlad-planet/yii2-blog
=====================

User Blog for yii2

09JavaScript

Since Feb 23Pushed 7y agoCompare

[ Source](https://github.com/vlad-planet/yii2-blog)[ Packagist](https://packagist.org/packages/vlad-planet/yii2-blog)[ RSS](/packages/vlad-planet-yii2-blog/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

User Blog for yii2
==================

[](#user-blog-for-yii2)

User Blog for yii2

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist vlad-planet/yii2-blog "*"

```

or add

```
"vlad-planet/yii2-blog": "*"

```

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

---

!!! Configurations
------------------

[](#-configurations)

---

common\\config\\main.php
------------------------

[](#commonconfigmainphp)

```
'modules' => [
	'blog' => [
	'class' => vladplanet\blog\Module::class,
	'urlManager' => 'urlManager',// 'urlManager' by default, or maybe you can use own component urlManagerFrontend
	'imgFilePath' => '@frontend/web/img/blog/',
	'imgFileUrl' => '/img/blog/',
	'userModel' => \common\models\User::class,
	'userPK' => 'id', //default primary key for {{%user}} table
	'userName' => 'username', //uses in view (may be field `username` or `email` or `login`)
],

```

---

frontend\\config\\main.php
--------------------------

[](#frontendconfigmainphp)

```
'modules' => [
	'blog' => [
	'class' => 'vladplanet\blog\Module',
	'controllerNamespace' => 'vladplanet\blog\controllers\frontend',
	'blogPostPageCount' => 6,
	'blogCommentPageCount' => 10, //20 by default
	'enableComments' => true, //false by default
	'schemaOrg' => [ // empty array [] by default!
	'publisher' => [
		'logo' => '/img/logo.png',
		'logoWidth' => 191,
		'logoHeight' => 74,
		'name' => 'My Company',
		'phone' => '+1 800 488 80 85',
		'address' => 'City, street, house'
            ]
        ]
    ],

'bootstrap' => [
	'log',
	'vladplanet\blog\Bootstrap',
],

```

---

backend\\config\\main.php
-------------------------

[](#backendconfigmainphp)

```
'bootstrap' => [
	'log',
	'vladplanet\blog\Bootstrap',
],

'modules' => [
	'blog' => [
		'class' => 'vladplanet\blog\Module',
		'controllerNamespace' => 'vladplanet\blog\controllers\backend',
		//'adminAccessControl' => 'common\components\AdminAccessControl', // null - by default
	],
],

```

---

url
---

[](#url)

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

```
```
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/06163b736493c3cf5c207374a5888487b26cd8ef8acf462940fef33a17403662?d=identicon)[vladplanet](/maintainers/vladplanet)

---

Top Contributors

[![vlad-planet](https://avatars.githubusercontent.com/u/41417307?v=4)](https://github.com/vlad-planet "vlad-planet (7 commits)")

### Embed Badge

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

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

PHPackages © 2026

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