{"id":18850178,"url":"https://github.com/edofre/yii2-command-caller","last_synced_at":"2025-10-15T11:17:14.812Z","repository":{"id":56975155,"uuid":"108404841","full_name":"Edofre/yii2-command-caller","owner":"Edofre","description":"Run console commands async","archived":false,"fork":false,"pushed_at":"2017-10-26T13:08:23.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-16T00:52:07.260Z","etag":null,"topics":["async","command","console","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Edofre.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGE.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-26T11:53:28.000Z","updated_at":"2017-10-26T13:08:38.000Z","dependencies_parsed_at":"2022-08-21T11:50:37.038Z","dependency_job_id":null,"html_url":"https://github.com/Edofre/yii2-command-caller","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Edofre/yii2-command-caller","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Edofre%2Fyii2-command-caller","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Edofre%2Fyii2-command-caller/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Edofre%2Fyii2-command-caller/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Edofre%2Fyii2-command-caller/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Edofre","download_url":"https://codeload.github.com/Edofre/yii2-command-caller/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Edofre%2Fyii2-command-caller/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279076185,"owners_count":26098104,"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","status":"online","status_checked_at":"2025-10-15T02:00:07.814Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["async","command","console","yii2"],"created_at":"2024-11-08T03:28:14.680Z","updated_at":"2025-10-15T11:17:14.766Z","avatar_url":"https://github.com/Edofre.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Yii2 Command Caller component\n\n[![Latest Stable Version](https://poser.pugx.org/edofre/yii2-command-caller/v/stable)](https://packagist.org/packages/edofre/yii2-command-caller)\n[![Total Downloads](https://poser.pugx.org/edofre/yii2-command-caller/downloads)](https://packagist.org/packages/edofre/yii2-command-caller)\n[![Latest Unstable Version](https://poser.pugx.org/edofre/yii2-command-caller/v/unstable)](https://packagist.org/packages/edofre/yii2-command-caller)\n[![License](https://poser.pugx.org/edofre/yii2-command-caller/license)](https://packagist.org/packages/edofre/yii2-command-caller)\n[![composer.lock](https://poser.pugx.org/edofre/yii2-command-caller/composerlock)](https://packagist.org/packages/edofre/yii2-command-caller)\n\n## Installation\n\nThe preferred way to install this extension is through [composer](http://getcomposer.org/download/).\n\nTo install, either run\n\n```\n$ php composer.phar require edofre/yii2-command-caller \"V1.0.1\"\n```\n\nor add\n\n```\n\"edofre/yii2-command-caller\": \"V1.0.1\"\n```\n\nto the ```require``` section of your `composer.json` file.\n\n## Usage\n\n### As application component\nAdd the component to your configuration file\n```php\n    'components' =\u003e [\n        'consoleRunner' =\u003e [\n            'class' =\u003e 'edofre\\commandcaller\\CommandCaller',\n            // Default values, not required\n            'script' =\u003e '@app/yii',\n            'executable' =\u003e '/usr/bin/php',\n        ]\n    ]\n```\n\n```php\n// We will change the $result variable in the CommandCaller class\nYii::$app-\u003econsoleRunner-\u003erun('command parameter1 parameter2');\n```\n\n### As single class\n```php\n$commandCaller = new \\edofre\\commandcaller\\CommandCaller();\n$commandCaller-\u003erun('command parameter1 parameter2');\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedofre%2Fyii2-command-caller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedofre%2Fyii2-command-caller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedofre%2Fyii2-command-caller/lists"}