PHPackages                             intermundia/yiicms - 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. intermundia/yiicms

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

intermundia/yiicms
==================

Package contains core models, migrations, behaviors, controllers etc. For the Yii2 CMS

v4.0.5(3y ago)37831[1 issues](https://github.com/intermundia-de/yiicms/issues)[4 PRs](https://github.com/intermundia-de/yiicms/pulls)BSD-4-ClausePHP

Since Jun 7Pushed 3y ago4 watchersCompare

[ Source](https://github.com/intermundia-de/yiicms)[ Packagist](https://packagist.org/packages/intermundia/yiicms)[ RSS](/packages/intermundia-yiicms/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (10)Dependencies (3)Versions (166)Used By (0)

Yii2 CMS core
=============

[](#yii2-cms-core)

Package contains core models, migrations, behaviors, controllers etc. for the Yii2 CMS

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist intermundia/yiicms "*"

```

or add

```
"intermundia/yiicms": "*"

```

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

### Upgrading from single site to Multi site

[](#upgrading-from-single-site-to-multi-site)

### Important!!!

[](#important)

Make sure you do not override `ContentTree::getActiveTranslation` and `BaseModel::getActiveTranslation` methods

---

1. Add user component in `console/config.php`

    ```
    'user' => [
        'class' => \intermundia\yiicms\web\User::class,
        'enableSession' => false,
        'identityClass' => \intermundia\yiicms\models\User::class
    ]
    ```
2. Add controllers in `console/config.php`

    ```
    'sync' => [
        'class' => \intermundia\yiicms\console\controllers\SyncController::class,
    ],
    'utils' => [
        'class' => \intermundia\yiicms\console\controllers\UtilsController::class,
    ],
    ```
3. Configure `mulsitecore` component in `common/config/base.php`If you want to have different domains for different environments, better to create ignored file and include inside `multisitecore` config

    ```
    'websites' => [
        'website key1' => [
            'defaultContentId' => "content tree id",
            'masterLanguage' => 'en-US',
            "storageUrl" => 'storage url',
            "domains" => [
                'domain1' => 'en-US',
                'domain2' => 'en-US',
            ]
        ],
        'website key2' => [
            'defaultContentId' => "content tree id",
            'masterLanguage' => 'en-US',
            "storageUrl" => 'storage url',
            "domains" => [
                'domain1' => 'en-US',
                'domain2' => 'en-US',
            ]
        ]
    ]
    ```

    \###\[Update\]. Each domain now can correspond to associative array in the following format

    ```
    'domain1' => [
        'language' => 'en-US',
        'isProduction' => false,
        'isFrontend' => true
    ]
    ```

    #### Full Example:

    [](#full-example)

    ```
    'mywebsite.com' => [
        'defaultContentId' => 1234,
        'masterLanguage' => 'en-US',
        "storageUrl" => 'mywebsite.com/storage/web',
        "domains" => [
            'mywebsite.com' => [
                'language' => 'en-US',
                'isProduction' => true,
                'isFrontend' => true
            ],
            'admin.mywebsite.com' => 'en-US', // You can leave en-US as string which means that isProduction and isFrontend both are false
        ]
    ]
    ```
4. Add console script to run core migrations in `./migrate` bash script as the first line

    ```
    php console/yii migrate --migrationPath=@cmsCore/migrations
    ```
5. Run migration

    ```
    ./migrate
    ```
6. For switch language from 'en' to 'en-US'

    ```
    php console/yii utils/switch-language en en-US
    ```
7. Read languages from multiSiteCore websites and insert it in language table

    ```
    php console/yii sync/languages
    ```
8. Add websites in contentTree

    ```
    php console/yii sync/websites
    ```
9. Make `frontend/controllers/ContentTreeController` to be extend of core's `FrontendContentTreeController`

---

1. To copy the website content when you have already run `php console/yii sync/websites `

    ```
    php console/yii utils/copy-language $fromWebsiteKey $toWebsiteKey $from $to
    ```
2. Copy language inside website

    ```
    php console/yii utils/add-language $websiteKey $from $to
    ```

---

To update alias, alias-path for and corresponding file manager items run

```
   php console/yii utils/fix-alias-and-file-manager-items $websiteKey
```

`SluggableBehavior` will update `alias` and `alias_path` attributes for each record in `content_tree_translation` table that belongs to provided `$websiteKey`. Corresponding `file_manager_item` records are also updated.

---

Usersnap
========

[](#usersnap)

For usersnap website\_translation model have two parameters, usersnap\_code where one should input code from usersnap.com and type. There are 3 different types:

1. `Disabled`. (in this case usersnap is not displayed)
2. `Always display`. (in this case usersnap is always visible)
3. `Display if url has usersnap=1 in get`(If you want to access usersnap and this option is selected, you should pass any get param `usersnap` to url once, which will save status in session and display usersnap untill session will expire or will be removed manually)

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~155 days

Total

127

Last Release

1336d ago

Major Versions

3.0.7 → 4.0.02020-10-02

3.0.9 → 4.0.12020-10-05

v3.0.11 → v4.0.22020-11-23

v3.0.12 → v4.0.32020-12-08

v3.0.15 → v4.0.42021-06-14

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/47417401?v=4)[Zura Sekhniashvili](/maintainers/arboshiki)[@arboshiki](https://github.com/arboshiki)

---

Top Contributors

[![thecodeholic](https://avatars.githubusercontent.com/u/4627922?v=4)](https://github.com/thecodeholic "thecodeholic (54 commits)")[![mirushaki](https://avatars.githubusercontent.com/u/23082543?v=4)](https://github.com/mirushaki "mirushaki (24 commits)")[![Zura024](https://avatars.githubusercontent.com/u/17799904?v=4)](https://github.com/Zura024 "Zura024 (22 commits)")[![sleemy1997](https://avatars.githubusercontent.com/u/36790954?v=4)](https://github.com/sleemy1997 "sleemy1997 (11 commits)")[![guga-grigolia](https://avatars.githubusercontent.com/u/4057809?v=4)](https://github.com/guga-grigolia "guga-grigolia (2 commits)")[![zuraintermundia](https://avatars.githubusercontent.com/u/51455027?v=4)](https://github.com/zuraintermundia "zuraintermundia (1 commits)")

---

Tags

yii2extensionyii2 CMS core

### Embed Badge

![Health badge](/badges/intermundia-yiicms/health.svg)

```
[![Health](https://phpackages.com/badges/intermundia-yiicms/health.svg)](https://phpackages.com/packages/intermundia-yiicms)
```

###  Alternatives

[skeeks/cms

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

13825.6k46](/packages/skeeks-cms)

PHPackages © 2026

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