PHPackages                             thefx/yii2-blocks - 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. thefx/yii2-blocks

ActiveYii2-extension

thefx/yii2-blocks
=================

Blocks

1.0.0(3y ago)01961GPL-3.0+PHPPHP &gt;=7.1.0

Since Jun 14Pushed 1y ago1 watchersCompare

[ Source](https://github.com/thefx/yii2-blocks)[ Packagist](https://packagist.org/packages/thefx/yii2-blocks)[ RSS](/packages/thefx-yii2-blocks/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (12)Versions (7)Used By (1)

Blocks
======

[](#blocks)

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

[](#installation)

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

```
composer require thefx/yii2-blocks:dev-master

```

or add

```
"thefx/yii2-blocks": "dev-master"

```

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

Apply Migrations
----------------

[](#apply-migrations)

```
php yii migrate --migrationPath=@thefx/blocks/migrations

```

Modify your application configuration:

```
return [
    'modules' => [
        'blocks' => [
            'class' => 'thefx\blocks\Module',
            'layoutPath' => '@app/modules/admin/layouts',
            'layout' => 'page',
            'layoutPure' => 'pure',
            'rootUsers' => [1],
        ...
        ]
        ...
    ],
];

```

Add access only for auth users

```
    'as access blocks' => [
        'class' => 'yii\filters\AccessControl',
        'only' => ['pages/*', 'blocks/*'],
        'rules' => [
            [
                'allow' => true,
                'roles' => ['@'],
            ],
        ],
    ],

```

Usage
-----

[](#usage)

Create block

```
http://site.com/blocks/block

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

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

Total

5

Last Release

698d ago

Major Versions

v0.4.0 → 1.0.02023-04-21

1.0.0 → v2.x-dev2024-03-10

### Community

Maintainers

![](https://www.gravatar.com/avatar/dd3086428aaa7f5e19cf98fe3a6b528c9ec56ccce8fc200fa962faf0874ae563?d=identicon)[3FoX](/maintainers/3FoX)

---

Top Contributors

[![thefx](https://avatars.githubusercontent.com/u/11796334?v=4)](https://github.com/thefx "thefx (105 commits)")

---

Tags

yii2extension

### Embed Badge

![Health badge](/badges/thefx-yii2-blocks/health.svg)

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

###  Alternatives

[skeeks/cms

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

13825.6k46](/packages/skeeks-cms)[yii2-starter-kit/yii2-starter-kit

Yii2 Starter Kit Application Template

1.4k6.6k](/packages/yii2-starter-kit-yii2-starter-kit)

PHPackages © 2026

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