{"id":22974274,"url":"https://github.com/diversen/minimal-cli-framework","last_synced_at":"2025-10-09T16:49:13.079Z","repository":{"id":39954374,"uuid":"76109841","full_name":"diversen/minimal-cli-framework","owner":"diversen","description":"A small and simple CLI framework for PHP","archived":false,"fork":false,"pushed_at":"2023-05-05T11:29:14.000Z","size":81,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-13T14:46:03.469Z","etag":null,"topics":["cli-framework","php","php-cli-framework","php-console","php-console-framework"],"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/diversen.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-12-10T11:58:50.000Z","updated_at":"2023-03-17T12:07:06.000Z","dependencies_parsed_at":"2025-08-13T14:34:04.993Z","dependency_job_id":"b0a97a35-c8c3-4f3e-b33f-d7b5153ffa34","html_url":"https://github.com/diversen/minimal-cli-framework","commit_stats":null,"previous_names":[],"tags_count":51,"template":false,"template_full_name":null,"purl":"pkg:github/diversen/minimal-cli-framework","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diversen%2Fminimal-cli-framework","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diversen%2Fminimal-cli-framework/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diversen%2Fminimal-cli-framework/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diversen%2Fminimal-cli-framework/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/diversen","download_url":"https://codeload.github.com/diversen/minimal-cli-framework/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diversen%2Fminimal-cli-framework/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001778,"owners_count":26083173,"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-09T02:00:07.460Z","response_time":59,"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":["cli-framework","php","php-cli-framework","php-console","php-console-framework"],"created_at":"2024-12-15T00:00:31.095Z","updated_at":"2025-10-09T16:49:13.015Z","avatar_url":"https://github.com/diversen.png","language":"PHP","readme":"# minimal-cli-framework\n\nA simple CLI framework with options for multiple sub-commands\nloaded as classes. In order to implement a command into an\nexisiting class you will just need to add two methods: `getCommand` and\n`runCommand` - and then add the object or the class to an instance\nof the class `MinimalCli`.\n\n# Install:\n\n    composer require diversen/minimal-cli-framework\n\n# Example usage\n\n[src/EchoTest.php](src/EchoTest.php) is a command class\ncontaining a single command `echo` and a couple of options.\n\nThis command is added to a simple program in [demos/example.php](demos/example.php)\n\nIn order to get help on the usage of the command `echo`:\n\n    php demos/example.php echo --help\n\nPut a file in uppercase: \n\n    php demos/example.php echo --up README.md\n\nOr (shorthand): \n\n    php demos/example.php echo -u README.md\n\nWhich also will output the file in uppercase\n\n# Utils\n\nSome common CLI Utils. \n\nSee [demos/utils_test.php](demos/utils_test.php)\n\n    php demos/utils_test.php \n\nColors are supported with [https://github.com/php-parallel-lint/PHP-Console-Color](https://github.com/php-parallel-lint/PHP-Console-Color)\n\nLicense: MIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiversen%2Fminimal-cli-framework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiversen%2Fminimal-cli-framework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiversen%2Fminimal-cli-framework/lists"}