{"id":41630957,"url":"https://github.com/rakit/console","last_synced_at":"2026-01-24T14:34:24.050Z","repository":{"id":62533015,"uuid":"82799033","full_name":"rakit/console","owner":"rakit","description":"PHP Simple Library to Create Command Line Interface Application","archived":false,"fork":false,"pushed_at":"2018-03-09T14:21:58.000Z","size":15,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-08-08T15:22:07.146Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/rakit.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":"2017-02-22T11:56:13.000Z","updated_at":"2023-12-25T21:33:02.000Z","dependencies_parsed_at":"2022-11-02T14:33:19.957Z","dependency_job_id":null,"html_url":"https://github.com/rakit/console","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/rakit/console","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakit%2Fconsole","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakit%2Fconsole/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakit%2Fconsole/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakit%2Fconsole/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rakit","download_url":"https://codeload.github.com/rakit/console/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakit%2Fconsole/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28729794,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T10:24:43.181Z","status":"ssl_error","status_checked_at":"2026-01-24T10:24:36.112Z","response_time":89,"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":"2026-01-24T14:34:23.471Z","updated_at":"2026-01-24T14:34:24.028Z","avatar_url":"https://github.com/rakit.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Rakit Console\n=======================\n\nRakit Console is simple PHP library to create Command Line Interface (CLI) Application.\nThis library strongly inspired by [Laravel Artisan Console](https://laravel.com/docs/5.4/artisan).\n\n## Features\n\n* Closure command. You don't need to create class for simple command.\n* Built-in command `list`.\n* Auto help handler for each commands.\n* Easy command signature.\n* Password input.\n* Simple Coloring.\n\n## Installation\n\nJust run this composer command:\n\n```bash\ncomposer require rakit/console\n```\n\n## Quickstart\n\n#### 1. Create App\n\nCreate a file named `cli` (without extension).\n\n```php\n\u003c?php\n\nuse Rakit\\Console\\App;\n\nrequire('vendor/autoload.php');\n\n// 1. Initialize app\n$app = new App;\n\n// 2. Register commands\n$app-\u003ecommand('hello {name}', 'Say hello to someone', function($name) {\n    $this-\u003ewriteln(\"Hello {$name}\");\n});\n\n// 3. Run app\n$app-\u003erun();\n```\n\n#### 2. Running Command\n\nOpen terminal/cmd, go to your app directory, run this command:\n\n```\nphp cli hello \"John Doe\"\n```\n\n#### 3. Command List\n\nYou can see available commands by typing this:\n\n```\nphp cli list\n```\n\n#### 4. Show Help\n\nYou can show help by putting `--help` or `-h` for each command. For example:\n\n```\nphp cli hello --help\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frakit%2Fconsole","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frakit%2Fconsole","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frakit%2Fconsole/lists"}