PHPackages                             ekup/yii2-installer - 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. ekup/yii2-installer

ActiveLibrary

ekup/yii2-installer
===================

Yii2 installer-configurator

043PHP

Since Sep 15Pushed 8y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-installer
==============

[](#yii2-installer)

[![Latest Version on Packagist](https://camo.githubusercontent.com/a70618f88ecfafc850bf70597e46032e65b0b2eaa1e5e314158ff4595522609d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656b75702f796969322d696e7374616c6c65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ekup/yii2-installer)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/a95185d241c603d409da63aee9020b94f194f01cbfc44c84e0d7fcc11e328edd/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f656b75702f796969322d696e7374616c6c65722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/ekup/yii2-installer)[![Coverage Status](https://camo.githubusercontent.com/7a1663e9f99f95aafd8b28259a41c313e6e353955da26eccf7798071f1e85872/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f656b75702f796969322d696e7374616c6c65722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/ekup/yii2-installer/code-structure)[![Quality Score](https://camo.githubusercontent.com/0e30b67f9eb277c49d002ca534b0e2861d591aec4f23a08c611050bd4e2630b5/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f656b75702f796969322d696e7374616c6c65722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/ekup/yii2-installer)[![Total Downloads](https://camo.githubusercontent.com/4a764069e765a1b99f60dab5dd1844faee4f27705da3e3affd55b121fa17116c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f656b75702f796969322d696e7374616c6c65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ekup/yii2-installer)

Инсталлатор проекта на Yii2, вынесенный в отдельный композер-пакет. Изначально разрабатывается для HKS, но может использоваться на любом Yii2 проекте.

Установка
---------

[](#установка)

Через композер

```
$ composer require ekup/yii2-installer
```

Использование
-------------

[](#использование)

Настройка консольного приложения проекта

```
'modules'    => [
    'installer'   => [
        'class' => '\ekup\yii2\installer\YiiInstallerModule',
    ],
],

'i18n' => [
        'translations' => [
            'installer' => [
                'class'          => 'yii\i18n\PhpMessageSource',
                'sourceLanguage' => 'ru-RU',
                'basePath'       => '@vendor/ekup/yii2-unstaller/messages',
                'fileMap'        => [
                    'installer' => 'installer.php',
                ],
            ],
        ],
    ],
```

В папку /common/config/installer необходимо добавить файл install.php с настройками установщика:

```
return [
    'actions' => [
        ['createStructure', 'envDescription' => [
            'dev' => \Yii::t('installer', 'Сервер разработки/тестирования'),
            'prod' => \Yii::t('installer', 'Боевой сервер'),
        ]],
        ['setWritable', 'files' => [
            'backend/runtime',
            'backend/web/assets',
            'frontend/runtime',
            'frontend/web/assets',
            'console/runtime',
        ]],
        ['setExecutable', 'files' => [
            'yii',
            'tests/codeception/bin/yii',
        ]],
        ['setCookieValidationKey', 'files' => [
            'backend/config/main-local.php',
            'frontend/config/main-local.php',
        ]],
        ['changeDbParameters', 'files' => [
            '/common/config/main-local.php',
        ]],
        [
            'class' => \main\configurator\actions\CreateUser::className(),
            'users' => [
                [
                    'email' => 'admin@admin.com',
                    'password' => '123456',
                    'role' => 'admin',
                ],
            ],
        ],
    ],
];
```

Запуск установщика:

```
./yii installer/install
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [ekup](https://github.com/ekup)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a7815ed6cdce91ff3bbf429daa31757c69535d8c0276a7772aef1e5261f84238?d=identicon)[EKup](/maintainers/EKup)

---

Top Contributors

[![ekup](https://avatars.githubusercontent.com/u/9537378?v=4)](https://github.com/ekup "ekup (16 commits)")

### Embed Badge

![Health badge](/badges/ekup-yii2-installer/health.svg)

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

PHPackages © 2026

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