{"id":32465715,"url":"https://github.com/sitkoru/yii2-updater","last_synced_at":"2026-01-20T16:24:30.395Z","repository":{"id":14346051,"uuid":"17055637","full_name":"sitkoru/yii2-updater","owner":"sitkoru","description":"Console app for update Yii2 apps","archived":false,"fork":false,"pushed_at":"2017-08-28T10:36:48.000Z","size":275,"stargazers_count":0,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-26T13:59:39.588Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sitkoru.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-02-21T12:29:17.000Z","updated_at":"2016-10-20T07:58:30.000Z","dependencies_parsed_at":"2022-08-24T04:11:26.468Z","dependency_job_id":null,"html_url":"https://github.com/sitkoru/yii2-updater","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sitkoru/yii2-updater","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sitkoru%2Fyii2-updater","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sitkoru%2Fyii2-updater/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sitkoru%2Fyii2-updater/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sitkoru%2Fyii2-updater/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sitkoru","download_url":"https://codeload.github.com/sitkoru/yii2-updater/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sitkoru%2Fyii2-updater/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28606953,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T16:10:39.856Z","status":"ssl_error","status_checked_at":"2026-01-20T16:10:39.493Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-26T13:59:11.257Z","updated_at":"2026-01-20T16:24:30.391Z","avatar_url":"https://github.com/sitkoru.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Usage:\n===========\n\nAdd \n```js\n\"sitkoru/yii2-updater\": \"dev-master\"\n```\nto require section of your composer.json\n\nEnable module in console app config:\n```php\n    'modules'=\u003e[\n    ...\n        'updater'   =\u003e [\n            'class'           =\u003e \\sitkoru\\updater\\Module::className(), //module class name\n            'path'            =\u003e dirname(dirname(__DIR__)), //path to app\n            'versionFilePath' =\u003e 'version.php', //path to file to store version. Include this file in your app.\n            'currentVersion'  =\u003e defined('APP_VERSION') ? APP_VERSION : 0.0, //current version. If empty, updater will try to get it from versionFile\n            'versionConstant' =\u003e 'APP_VERSION', //constant name to store version\n            'releasePrefix'   =\u003e \"origin/release-\", //prefix to identify release branches in git\n            'assetsCommands'  =\u003e [ //commands for publish assets\n                \"./yii asset/compress app/config/main.assets.php app/config/bundles.php\" //for example\n            ],\n            'customCommands'  =\u003e [ //commands for custom operations, like starting daemons or something else\n                \"nodejs bin/chat.js\" //for example\n            ]\n        ],\n    ...\n    ]\n```\n\nOther options you can see in Module.php\n\nRun\n```bash\n./yii updater/release\n```\nand follow instructions =)\n\nNotice:\n===========\nUpdater override yii's migrate functions to mark migrations with app version. Some advices:\n\n1. Don't use it in dev mode =)\n\n2. Don't use ./yii migrate on production\n\n3. If you need to manually apply migrations, use ./yii updater/migrations/up 0 1.1 //replace 1.1 with real version","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsitkoru%2Fyii2-updater","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsitkoru%2Fyii2-updater","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsitkoru%2Fyii2-updater/lists"}