PHPackages                             sergmoro1/yii2-blog-tools - 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. [Admin Panels](/categories/admin)
4. /
5. sergmoro1/yii2-blog-tools

ActiveYii2-extension[Admin Panels](/categories/admin)

sergmoro1/yii2-blog-tools
=========================

Blog tools. Posts, Authors, Users, Tags, Rubrics, Comments backend SBAdmin-panel management.

v1.1.11(6y ago)01921MITPHPPHP &gt;=5.4.0

Since Sep 4Pushed 2y ago1 watchersCompare

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

READMEChangelogDependencies (8)Versions (13)Used By (1)

Yii2 module for backend blog management, SBadmin panel, advanced template
=========================================================================

[](#yii2-module-for-backend-blog-management-sbadmin-panel-advanced-template)

Ordinary management system for posts. Can be used as a base for any app.

Advantages
----------

[](#advantages)

- Posts, nested set rubrics, tags, users, authors;
- Comments management, update, reply;
- Imperavi redactor;
- Files &amp; images uploading, photos chain for carousel slider;
- User registration with email confirmation or by network account;
- RBAC.

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

[](#installation)

1. Install package

The preferred way to install this extension is through composer.

Either run

`composer require --prefer-dist sergmoro1/yii2-blog-tools`

or add

`"sergmoro1/yii2-blog-tools": "^1.1"`

to the require section of your composer.json.

2. Git init

`git init`

3. Configuring migrations

Add information about migration folders with `namespace` to `console\config\main.php` in `controllerMap` section.

```
    'controllerMap' => [
        'migrate' => [
            'class' => 'yii\console\controllers\MigrateController',
            'migrationNamespaces' => [
                'sergmoro1\uploader\migrations',
                'sergmoro1\lookup\migrations',
                'sergmoro1\user\migrations',
                'sergmoro1\blog\migrations',
                'sergmoro1\comment\migrations',
            ],
        ],
    ],
```

4. Run migrations

```
php yii migrate
php yii migrate --migrationPath=@vendor/notgosu/yii2-meta-tag-module/src/migrations

```

5. Init blog

Copy predefined files to appropriate folders by batch file `initblog`.

To get it make a command in app directory.

`cp ./vendor/sergmoro1/yii2-blog-tools/src/initblog ./`

And run a batch file.

`php initblog`

Set the folder as writable to store the uploaded files.

`chmod -R 777 ./frontend/web/files`

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

[](#configuration)

Set up in `backend/config/main.php`.

```
return [
    'defaultRoute' => '/blog/site/index',
    'layoutPath' => '@vendor/sergmoro1/yii2-blog-tools/src/views/layouts',
    'modules' => [
        'uploader' => ['class' => 'sergmoro1\uploader\Module'],
    ],
    'components' => [
        'authManager' => [
            'class' => 'yii\rbac\PhpManager',
            'defaultRoles' => ['commentator', 'author', 'admin'],
            'itemFile' => __DIR__ . '/../../console/rbac/items.php',
            'ruleFile' => __DIR__ . '/../../console/rbac/rules.php',
        ],
        'user' => [
            'class' => 'yii\web\User',
            'identityClass' => 'common\models\User',
            'enableAutoLogin' => true,
            'identityCookie' => ['name' => '_identity-backend', 'httpOnly' => true],
        ],
        'urlManager' => [
            'class' => 'yii\web\UrlManager',
            'enablePrettyUrl' => true,
            'showScriptName' => false,
            'enableStrictParsing' => false,
        ],
        'errorHandler' => [
            'errorAction' => '/blog/site/error',
        ],
    ],
];
```

Set up in `common/config/main.php`.

```
return [
    'language' => 'ru-RU', // 'en-US',
    'bootstrap' => [
        'blog',
        'comment',
    ],
    'modules' => [
        'lookup'        => ['class' => 'sergmoro1\lookup\Module'],
        'blog'          => ['class' => 'sergmoro1\blog\Module'],
        'comment'       => ['class' => 'sergmoro1\comment\Module'],
        'user'          => ['class' => 'sergmoro1\user\Module'],
        'seo'           => ['class' => 'notgosu\yii2\modules\metaTag\Module'],
    ],
    'components' => [
        'authManager' => [
            'class' => 'yii\rbac\PhpManager',
        ],
        'user' => [
            'class' => 'yii\web\User',
        ],
        'mailer' => [
            'class' => 'yii\swiftmailer\Mailer',
            'useFileTransport' => false,
            'viewPath' => '@vendor/sergmoro1/yii2-user/src/mail',
            /* Definition of Yandex post office for your domain (example).
            'transport' => [
                'class' => 'Swift_SmtpTransport',
                'host' => 'smtp.yandex.ru',
                'username' => 'admin@your-site.ru',
                'password' => 'your-password',
                'port' => '465',
                'encryption' => 'ssl',
            ],
            */
        ],
        'i18n' => [
            'translations' => [
                'app*' => [
                    'class' => 'yii\i18n\PhpMessageSource',
                    'basePath' => '@app/../messages',
                    'sourceLanguage' => 'en-US',
                    'fileMap' => [
                        'app' => 'app.php',
                        'app/error' => 'error.php',
                    ],
                ],
                'metaTag' => [
                    'class' => 'yii\i18n\PhpMessageSource',
                ],
                // sergmoro1/user/models/LoginForm is used in frontend/controllers/SiteController, so
                // it is not used within the Module then translation should be defined twice
                // here and in a sergmoro1/user/Module::registerTranslations()
                'sergmoro1/user/*' => [
                    'class' => 'yii\i18n\PhpMessageSource',
                    'sourceLanguage' => 'en-US',
                    'basePath' => '@vendor/sergmoro1/yii2-user/src/messages',
                    'fileMap' => [
                        'sergmoro1/user/core' => 'core.php',
                    ],
                ],
            ],
        ],
    ],
];
```

Set up in `common/config/params-local.php`.

```
return [
    // localhost or real host
    'frontend' => 'http://localhost',
];
```

Don't forget add `.htaccess` file to `backend/web` and `frontend/web`.

Start
-----

[](#start)

Enter `http://your-app/backend/web` and `Login`.

**Name**: `Admin`

**Password**: `123456`

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

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 ~7 days

Total

12

Last Release

2356d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/47754c3aa326cd8f607f8207a47193bb3286eac44fded6dd5a312da13358e76c?d=identicon)[sergmoro1](/maintainers/sergmoro1)

---

Top Contributors

[![sergmoro1](https://avatars.githubusercontent.com/u/5292104?v=4)](https://github.com/sergmoro1 "sergmoro1 (178 commits)")

---

Tags

yii2tagblogcommentrubric

### Embed Badge

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

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

###  Alternatives

[akiraz2/yii2-blog

Simple, configurable blog module for Yii2 (post, comment, nested category, tags). + frontend, backend. + SEO! (Opengraph, Schema.org)

906.7k](/packages/akiraz2-yii2-blog)[fancyecommerce/fec_admin

fancy ecommerce

6312.1k1](/packages/fancyecommerce-fec-admin)

PHPackages © 2026

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