PHPackages                             nullref/yii2-multisite - 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. nullref/yii2-multisite

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

nullref/yii2-multisite
======================

21703PHP

Since Oct 1Pushed 4y ago7 watchersCompare

[ Source](https://github.com/NullRefExcep/yii2-multisite)[ Packagist](https://packagist.org/packages/nullref/yii2-multisite)[ RSS](/packages/nullref-yii2-multisite/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 Multisite
==============

[](#yii2-multisite)

[![Latest Stable Version](https://camo.githubusercontent.com/e0e555aa19e5b277e11c93e4c2d49cc9af4e2630c1a5fe62e4d4b08b194b87a5/68747470733a2f2f706f7365722e707567782e6f72672f6e756c6c7265662f796969322d6d756c7469736974652f762f737461626c65)](https://packagist.org/packages/nullref/yii2-multisite) [![Total Downloads](https://camo.githubusercontent.com/cc997172b1cad58bd67b652acd441048d531322eb9c9dd3bde5583f7cb7b3189/68747470733a2f2f706f7365722e707567782e6f72672f6e756c6c7265662f796969322d6d756c7469736974652f646f776e6c6f616473)](https://packagist.org/packages/nullref/yii2-multisite) [![Latest Unstable Version](https://camo.githubusercontent.com/2a0615bc0ac2560612a27d31c99563623184f5d30de904d8e46d178fda144429/68747470733a2f2f706f7365722e707567782e6f72672f6e756c6c7265662f796969322d6d756c7469736974652f762f756e737461626c65)](https://packagist.org/packages/nullref/yii2-multisite) [![License](https://camo.githubusercontent.com/68578ae3351049cf92bfdfcaf4c364051d98ffabf9612b94f8b79d68a4351613/68747470733a2f2f706f7365722e707567782e6f72672f6e756c6c7265662f796969322d6d756c7469736974652f6c6963656e7365)](https://packagist.org/packages/nullref/yii2-multisite)

Module for multi site (WIP)

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist nullref/yii2-multisite "*"

```

or add

```
"nullref/yii2-multisite": "*"

```

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

Then You have run console command for install this module:

```
php yii module/install nullref/yii2-multisite

```

Pay attention that if you don't use our [application template](https://github.com/NullRefExcep/yii2-boilerplate)it needs to change config files structure to have ability run commands that show above.

Please check this [documentation section](https://github.com/NullRefExcep/yii2-core#config-structure)

You need to add module to bootstrap list of application:

```
//...
'bootstrap' => [
    'multisite',
    //...
    ],
//...
```

Using with admin module
-----------------------

[](#using-with-admin-module)

You can use this module with modules:

- [Yii2 Admin](https://github.com/NullRefExcep/yii2-admin).
- [Yii2 Full Admin](https://github.com/NullRefExcep/yii2-full-admin).

Models overriding
-----------------

[](#models-overriding)

```
    'multisite' => [
        'class' => 'nullref\multisite\Module',
        'classMap' => [
            'Site' => 'app\models\Site',
            'SiteQuery' => 'app\models\SiteQuery',
        ],
    ],
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 Bus Factor1

Top contributor holds 57.1% 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/d5e9417df48f462cf27e16429bed321f138e1db5b943c6b026aab97b86b42b55?d=identicon)[ZAYEC77](/maintainers/ZAYEC77)

---

Top Contributors

[![ZAYEC77](https://avatars.githubusercontent.com/u/4509483?v=4)](https://github.com/ZAYEC77 "ZAYEC77 (12 commits)")[![lijkbezorger](https://avatars.githubusercontent.com/u/12811869?v=4)](https://github.com/lijkbezorger "lijkbezorger (8 commits)")[![cybernic](https://avatars.githubusercontent.com/u/5999069?v=4)](https://github.com/cybernic "cybernic (1 commits)")

---

Tags

yii2yii2-extension

### Embed Badge

![Health badge](/badges/nullref-yii2-multisite/health.svg)

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

PHPackages © 2026

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