{"id":16316583,"url":"https://github.com/vova07/yii2-console-runner-extension","last_synced_at":"2025-04-09T10:08:30.492Z","repository":{"id":16242519,"uuid":"18990257","full_name":"vova07/yii2-console-runner-extension","owner":"vova07","description":"An extension for running console commands on background in Yii framework.","archived":false,"fork":false,"pushed_at":"2019-07-02T09:32:46.000Z","size":32,"stargazers_count":87,"open_issues_count":5,"forks_count":24,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-02T08:11:13.372Z","etag":null,"topics":["background","background-runner","commands","console","console-runner","runner","yii2"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vova07.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-21T11:11:43.000Z","updated_at":"2024-10-29T23:18:43.000Z","dependencies_parsed_at":"2022-08-02T23:00:54.571Z","dependency_job_id":null,"html_url":"https://github.com/vova07/yii2-console-runner-extension","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vova07%2Fyii2-console-runner-extension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vova07%2Fyii2-console-runner-extension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vova07%2Fyii2-console-runner-extension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vova07%2Fyii2-console-runner-extension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vova07","download_url":"https://codeload.github.com/vova07/yii2-console-runner-extension/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248018060,"owners_count":21034048,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["background","background-runner","commands","console","console-runner","runner","yii2"],"created_at":"2024-10-10T22:05:03.316Z","updated_at":"2025-04-09T10:08:30.471Z","avatar_url":"https://github.com/vova07.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Console Runner\n\n[![Latest Version](https://img.shields.io/github/tag/vova07/yii2-console-runner-extension.svg?style=flat-square\u0026label=release)](https://github.com/vova07/yii2-console-runner-extension/releases)\n[![Software License](https://img.shields.io/badge/license-BSD-brightgreen.svg?style=flat-square)](LICENSE.md)\n[![Build Status](https://img.shields.io/travis/vova07/yii2-console-runner-extension/master.svg?style=flat-square)](https://travis-ci.org/vova07/yii2-console-runner-extension)\n[![Coverage Status](https://img.shields.io/scrutinizer/coverage/g/vova07/yii2-console-runner-extension.svg?style=flat-square)](https://scrutinizer-ci.com/g/vova07/yii2-console-runner-extension/code-structure)\n[![Quality Score](https://img.shields.io/scrutinizer/g/vova07/yii2-console-runner-extension.svg?style=flat-square)](https://scrutinizer-ci.com/g/vova07/yii2-console-runner-extension)\n[![Total Downloads](https://img.shields.io/packagist/dt/vova07/yii2-console-runner-extension.svg?style=flat-square)](https://packagist.org/packages/vova07/yii2-console-runner-extension)\n\nAn extension for running console commands on background in Yii framework.\n\n## Installation\n\nAdd the following to `require` section of your `composer.json`:\n\n```\n\"vova07/yii2-console-runner-extension\": \"*\"\n```\n\nThen do `composer install`.\n\n## Usage\n\n##### Imported class:\n\n```php\nuse vova07\\console\\ConsoleRunner;\n$cr = new ConsoleRunner(['file' =\u003e '@my/path/to/yii']);\n$cr-\u003erun('controller/action param1 param2 ...');\n```\n\n##### Application component:\n\n```php\n// config.php\n...\ncomponents [\n    'consoleRunner' =\u003e [\n        'class' =\u003e 'vova07\\console\\ConsoleRunner',\n        'file' =\u003e '@my/path/to/yii' // or an absolute path to console file\n    ]\n]\n...\n\n// some-file.php\nYii::$app-\u003econsoleRunner-\u003erun('controller/action param1 param2 ...');\n```\n\n### Running Tests\n```bash\n$ phpunit\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvova07%2Fyii2-console-runner-extension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvova07%2Fyii2-console-runner-extension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvova07%2Fyii2-console-runner-extension/lists"}