PHPackages                             mix8872/yii2-included-areas - 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. mix8872/yii2-included-areas

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

mix8872/yii2-included-areas
===========================

Module for create included areas in the yii2

1.3.0(6y ago)029MITPHPPHP &gt;=7.1.0

Since Dec 30Pushed 5y ago1 watchersCompare

[ Source](https://github.com/mix8872/yii2-included-areas)[ Packagist](https://packagist.org/packages/mix8872/yii2-included-areas)[ RSS](/packages/mix8872-yii2-included-areas/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (3)Used By (0)

Yii2 included areas module
--------------------------

[](#yii2-included--areas-module)

This is module for creating included areas (like in the bitrix but without hermitage) in the yii2.

Management of included areas based on bs4, so you must use bs4... bs3 is dead, sorry (or you can fork this shit and do like you want).

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist mix8872/included-areas

```

or add

```
"mix8872/yii2-included-areas": "dev-master"
```

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

Usage
-----

[](#usage)

Edit `modules` section of your application config file.

Common:

```
'modules' => [
	'included-areas' => [
		'class' => 'mix8872\includes\Module',
		'directory' => 'includes',
		'as access' => [
			'class' => 'yii\filters\AccessControl',
			'rules' => [
				[
					'allow' => true,
					'roles' => ['admin'],
                    'matchCallback' => function () {
                        return Yii::$app->id === 'app-backend';
                    }
				],
			]
		],
	],
// next modules config
],
```

In the config you must specify `directory` property. Directory named by this property will created in your web folder (and this folder must be common between frontend and backend web folders). After first load of the page with widget, the included areas files will be created in this folder.

Also you can create file manually in folder defined in the config, but it should be noted that widget append \_inc suffix for all files so you must create files like `awesome_file_inc.php` or `sometext_inc.php`.

---

**IMPORTANT! You must specify `as access` for module!**

---

Then you must place widget in the your view file in this way:

```

```

Where:

- `name` - unique name of file. Widget will add `_inc` suffix to your file, there way you will get the file like `your_unique_name_of_file_inc.php`.
- `directory` - subfolder name that will be creates in the main directory defined in the config.

---

After you load all pages with included areas and files will be created (or you will create files manually), you can open url \\included-areas\\ and manage records.

Enjoy.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Total

2

Last Release

2290d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/52c5dc1f7474e82117d2503c0d9c478ead60d46790e16b935f28fae4ffc29513?d=identicon)[mix8872](/maintainers/mix8872)

---

Top Contributors

[![mix8872](https://avatars.githubusercontent.com/u/25277872?v=4)](https://github.com/mix8872 "mix8872 (7 commits)")

### Embed Badge

![Health badge](/badges/mix8872-yii2-included-areas/health.svg)

```
[![Health](https://phpackages.com/badges/mix8872-yii2-included-areas/health.svg)](https://phpackages.com/packages/mix8872-yii2-included-areas)
```

PHPackages © 2026

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