PHPackages                             sitkoru/yii2-updater - 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. sitkoru/yii2-updater

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

sitkoru/yii2-updater
====================

Updater for Sitko.ru Yii2 projects

2.x-dev(10y ago)02423MITPHPPHP &gt;=5.4.0

Since Dec 18Pushed 8y ago1 watchersCompare

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

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

Usage:
======

[](#usage)

Add

```
"sitkoru/yii2-updater": "dev-master"
```

to require section of your composer.json

Enable module in console app config:

```
    'modules'=>[
    ...
        'updater'   => [
            'class'           => \sitkoru\updater\Module::className(), //module class name
            'path'            => dirname(dirname(__DIR__)), //path to app
            'versionFilePath' => 'version.php', //path to file to store version. Include this file in your app.
            'currentVersion'  => defined('APP_VERSION') ? APP_VERSION : 0.0, //current version. If empty, updater will try to get it from versionFile
            'versionConstant' => 'APP_VERSION', //constant name to store version
            'releasePrefix'   => "origin/release-", //prefix to identify release branches in git
            'assetsCommands'  => [ //commands for publish assets
                "./yii asset/compress app/config/main.assets.php app/config/bundles.php" //for example
            ],
            'customCommands'  => [ //commands for custom operations, like starting daemons or something else
                "nodejs bin/chat.js" //for example
            ]
        ],
    ...
    ]
```

Other options you can see in Module.php

Run

```
./yii updater/release
```

and follow instructions =)

Notice:
=======

[](#notice)

Updater override yii's migrate functions to mark migrations with app version. Some advices:

1. Don't use it in dev mode =)
2. Don't use ./yii migrate on production
3. If you need to manually apply migrations, use ./yii updater/migrations/up 0 1.1 //replace 1.1 with real version

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 98.5% 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

Unknown

Total

1

Last Release

3798d ago

### Community

Maintainers

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

---

Top Contributors

[![SonicGD](https://avatars.githubusercontent.com/u/1222013?v=4)](https://github.com/SonicGD "SonicGD (64 commits)")[![yasitko](https://avatars.githubusercontent.com/u/1772689?v=4)](https://github.com/yasitko "yasitko (1 commits)")

---

Tags

yii2sitkorucg2

### Embed Badge

![Health badge](/badges/sitkoru-yii2-updater/health.svg)

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

###  Alternatives

[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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