{"id":22291321,"url":"https://github.com/maestroerror/console-command-php","last_synced_at":"2025-03-25T21:43:04.313Z","repository":{"id":62521735,"uuid":"419275184","full_name":"MaestroError/console-command-php","owner":"MaestroError","description":"ccPHP is command processing class to provide CLI commands in Unix style (cmd - options - arg)","archived":false,"fork":false,"pushed_at":"2022-09-13T07:03:12.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"maestro","last_synced_at":"2025-01-30T18:51:23.782Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MaestroError.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":"2021-10-20T09:59:21.000Z","updated_at":"2022-09-08T14:31:33.000Z","dependencies_parsed_at":"2022-11-02T14:00:43.743Z","dependency_job_id":null,"html_url":"https://github.com/MaestroError/console-command-php","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaestroError%2Fconsole-command-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaestroError%2Fconsole-command-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaestroError%2Fconsole-command-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaestroError%2Fconsole-command-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MaestroError","download_url":"https://codeload.github.com/MaestroError/console-command-php/tar.gz/refs/heads/maestro","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245550588,"owners_count":20633871,"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":[],"created_at":"2024-12-03T17:16:46.610Z","updated_at":"2025-03-25T21:43:04.279Z","avatar_url":"https://github.com/MaestroError.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# console-command-php\nccPHP is command processing class to provide CLI commands in Unix style (cmd - options - arg)\n\n## installation\ninstall with composer:\n```\ncomposer require maestroerror/console-command-php\n```\n### Usage example\n\n```\nuse maestroerror\\console\\Command;\n\n$command = new Command($argv);\n\nprint_r($command-\u003eget());\n```\nreturns array like:  \n```\n[\n    \"command\" =\u003e String,\n    \"argument\" =\u003e Array,\n    \"options\" =\u003e Array,\n]\n```\n\n--------------------------------\n### To Do\n- fix current class and rename/use as command read class\n- add new global class ConsoleCommandPhp with static methods Run (reads and runs command) and Read (read command and returns array value)\n- add main class to extend and use as parent class for class commands with livewire style: bool types for --options, string types for -valued=option and think out how to add arguments\n- Make helper function which initialates parent class and help you create command in the fly, without static class writing (use chain)\n- Seo, Documentation and Examples","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaestroerror%2Fconsole-command-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaestroerror%2Fconsole-command-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaestroerror%2Fconsole-command-php/lists"}