PHPackages                             diazoxide/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. [Framework](/categories/framework)
4. /
5. diazoxide/yii2-blog

ActiveYii2-extension[Framework](/categories/framework)

diazoxide/yii2-blog
===================

Advanced Yii2 blog module, posts, categories, tags, comments, books, SEO, social plugins, Slider Revolution e.t.c.

1.1(6y ago)112804[5 issues](https://github.com/diazoxide/yii2-blog/issues)MITPHP

Since May 20Pushed 6y ago2 watchersCompare

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

READMEChangelog (2)Dependencies (26)Versions (3)Used By (0)

diazoxide/yii2-blog
===================

[](#diazoxideyii2-blog)

Advanced Yii2 Blog module. Posts, Categories, Comments, Tags, With Slider Revolution, SEO tags, Social Tags

Flexible blog module like wordpress, you can use this module as CMS, or can use it as simple blog system. Easy to use and user friendly administrator dashboard.

Responsive Bootstrap 3 user interface. (BS4 coming soon) Mobile friendly, web browser optimised front end.

Fully configurable frontend design, without codding.

Features
========

[](#features)

- Blog Posts
    - Title
    - Slug
    - Multiple Categories for each post
    - Brief
    - Content - TinyMCE/wysiwyg editor
    - Books - Chapters and sub Chapters - Nested structure - Nested breadcrumbs - BBCode support - Custom BBCode styling
- Blog Categories
    - Nested hierarchy structure
    - UI sorting
- Blog Tags
- Blog Comments
    - Local comments
    - Facebook comments
- Custom Widgets
    - Dynamic widgets
    - Custom backend panel
    - Custom Styling
    - Custom Javascript
    - Infinite Scroll for each widgted
    - Category integration
- Slider Revolution

installation
============

[](#installation)

add to composer.json
--------------------

[](#add-to-composerjson)

```
{
    "require": {
      "diazoxide/yii2-blog": "dev-master"
    }
}
```

common configuration
--------------------

[](#common-configuration)

```
 'modules'=>[
     'blog' => [
         'class' => "diazoxide\blog\Module",
         'urlManager' => 'urlManager',
         'imgFilePath' => dirname(__DIR__) . '/public/uploads/img/blog/',
         'imgFileUrl' => '/uploads/img/blog/',
         // You can change any view file for each route
         'frontendViewsMap'=>[
             'blog/default/index'=>'@app/views/blog/index'
         ],
         // You can change any layout for each route
         'frontendLayoutMap'=>[
             'blog/default/view'=>'@app/views/layouts/main-with-two-sidebar',
             'blog/default/archive'=>'@app/views/layouts/main-with-right-sidebar',
         ],
         'homeTitle'=>'Blog title',
         'userModel' => "\app\models\User",
         'userPK' => 'id',
         'userName' => 'username',
         'showClicksInPost'=>false,
         'enableShareButtons' => true,
         'blogPostPageCount' => '10',
         'schemaOrg' => [
             'publisher' => [
                 'logo' => '/path/to/logo.png',
                 'logoWidth' => 200,
                 'logoHeight' => 47,
                 'name' => "Blog title",
                 'phone' => '+1 800 488 80 85',
                 'address' => 'Address 13/5'
             ]
         ]
     ],
 ]
```

backend configuration
---------------------

[](#backend-configuration)

```
$config['modules']['blog']['controllerNamespace'] = 'diazoxide\blog\controllers\backend';
```

Migration
=========

[](#migration)

> after install run migration command

```
php yii migrate --migrationPath=@vendor/diazoxide/yii2-blog/migrations
```

Customisation
=============

[](#customisation)

Module is flexible. You can customize everything in module

UrlManager and custom routes
----------------------------

[](#urlmanager-and-custom-routes)

> archive url in frontend

> category url in frontend

> post url in frontend like a wordpress and seo friendly

```
 'urlManager' => [
    'enablePrettyUrl' => true,
    'showScriptName' => false,
    'rules' => [
        //F.E. https://blog.com/category/politics
        '/category/' => '/blog/default/archive',

        //F.E. https://blog.com/archive
        '/archive' => '/blog/default/archive',

        //F.E. https://blog.com/2019/11/21/your-post-slug
        [
            'pattern' => '///',
            'route' => '/blog/default/view',
            'suffix' => '/'
        ],
    ],
],
```

Navigation elements
-------------------

[](#navigation-elements)

> Integration backend navigation menu

Simply you can use Module builtin function "getNavigation"

> > Yii::$app-&gt;getModule('blog')-&gt;getNavigation()

```
echo Nav::widget([
    'encodeLabels' => false,
    'options' => ['class' => $class],
    'items' => Yii::$app->getModule('blog')->getNavigation()
]);
```

View files customisation
------------------------

[](#view-files-customisation)

In config file you can simply customise any view file.

You can create your custom view files and connect it from config.php

```
'frontendViewsMap' => [
     'blog/default/index'=>'@app/views/blog/index',
     'blog/default/index' => 'index',
     'blog/default/view' => 'view',
     'blog/default/archive' => 'archive',
     'blog/default/book' => 'viewBook',
     'blog/default/chapter' => 'viewChapter',
     'blog/default/chapter-search' => 'searchBookChapter',
],
```

Layout files customisations
---------------------------

[](#layout-files-customisations)

```
'frontendLayoutMap'=>[
    'blog/default/view'=>'@app/views/layouts/my-custom-layout-1',
    'blog/default/archive'=>'@app/views/layouts/my-custom-layout-2',
    ...
],
```

Support
=======

[](#support)

Contacts
--------

[](#contacts)

- Email:
- Mobile: +374 (98) 47 11 11
- Linkedin։

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance11

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community10

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

Unknown

Total

1

Last Release

2544d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/759f35eb535bd0e8362784571e18d215e04dd4eb531c75d7b3b6a82bd5243a6d?d=identicon)[eyehollow](/maintainers/eyehollow)

---

Top Contributors

[![diazoxide](https://avatars.githubusercontent.com/u/25997814?v=4)](https://github.com/diazoxide "diazoxide (18 commits)")

---

Tags

yii2extensionmoduletagblogcommentsseopostcategoryyii2-blog

### Embed Badge

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

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

###  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)[skeeks/cms

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

13825.6k47](/packages/skeeks-cms)

PHPackages © 2026

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