{"id":19112894,"url":"https://github.com/chipslays/clify","last_synced_at":"2026-06-28T21:31:26.098Z","repository":{"id":62501928,"uuid":"329660422","full_name":"chipslays/clify","owner":"chipslays","description":"📟 Developing CLI applications in PHP.","archived":false,"fork":false,"pushed_at":"2021-03-10T11:17:49.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-28T13:49:43.113Z","etag":null,"topics":["cli","cli-utilities","php-cli-library"],"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/chipslays.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":"2021-01-14T15:45:47.000Z","updated_at":"2021-03-10T11:17:52.000Z","dependencies_parsed_at":"2022-11-02T12:01:29.089Z","dependency_job_id":null,"html_url":"https://github.com/chipslays/clify","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/chipslays/clify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chipslays%2Fclify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chipslays%2Fclify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chipslays%2Fclify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chipslays%2Fclify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chipslays","download_url":"https://codeload.github.com/chipslays/clify/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chipslays%2Fclify/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34905180,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-28T02:00:05.809Z","response_time":54,"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","cli-utilities","php-cli-library"],"created_at":"2024-11-09T04:34:27.355Z","updated_at":"2026-06-28T21:31:26.081Z","avatar_url":"https://github.com/chipslays.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WIP: 📟 Clify\n\nDeveloping CLI applications in PHP.\n\n## Installation\n\n```bash\n$ composer require chipslays/clify\n```\n\n## Usage\n\nPlace this code in `app` file:\n\n```php\n#!/usr/bin/env php\n\u003c?php \n\nuse Clify\\Cli;\n\nrequire 'vendor/autoload.php';\n\n$cli = new Cli;\n\nprint_r($cli-\u003egetArgs()-\u003etoArray());\n```\n\nRun  `app` file in Terminal:\n```bash\n$ php app --data \"hello world\" --save \"./path/to/file.txt\" -o --append -val=\"test\" --some=\"spaces here\" lonely\n```\n\nTerminal output:\n```php\nArray\n(\n    [data] =\u003e hello world\n    [save] =\u003e ./path/to/file.txt\n    [o] =\u003e 1\n    [append] =\u003e 1\n    [val] =\u003e test\n    [some] =\u003e spaces here\n    [lonely] =\u003e 1\n)\n```\n\n```php\nuse Clify\\Cli;\n\nrequire 'vendor/autoload.php';\n\nout('text');\nerror('text');\nsuccess('text');\ninfo('text');\nwarning('text');\n\n$cli-\u003eget('some_arg', 'default value');\n```\n\nTerminal output (with new line):\n\n```php\nuse Clify\\Cli;\n\nrequire 'vendor/autoload.php';\n\necho Cli::out(\"{blue}Blue text\");\n```\n\nColorize text output:\n\n```php\nuse Clify\\Cli;\n\nrequire 'vendor/autoload.php';\n\necho Cli::colorize(\"{blue}Blue text{reset}\");\necho Cli::colorize(\"{black}{bg:yellow} Black text on Yellow background{reset}\");\n\n// At the end, it will automatically add {reset}\necho Cli::colorizeLine(\"{blue}Blue text\");\n```\n\nAvailable colors:\n\n```php\n$list = [\n    \"{reset}\" =\u003e \"\\e[0m\",\n    \"{black}\" =\u003e \"\\e[0;30m\",\n    \"{white}\" =\u003e \"\\e[1;37m\",\n    \"{dark_grey}\" =\u003e \"\\e[1;30m\",\n    \"{dark_gray}\" =\u003e \"\\e[1;30m\",\n    \"{light_grey}\" =\u003e \"\\e[0;37m\",\n    \"{light_gray}\" =\u003e \"\\e[0;37m\",\n    \"{red}\" =\u003e \"\\e[0;31m\",\n    \"{light_red}\" =\u003e \"\\e[1;31m\",\n    \"{green}\" =\u003e \"\\e[0;32m\",\n    \"{light_green}\" =\u003e \"\\e[1;32m\",\n    \"{brown}\" =\u003e \"\\e[0;33m\",\n    \"{yellow}\" =\u003e \"\\e[1;33m\",\n    \"{blue}\" =\u003e \"\\e[0;34m\",\n    \"{magenta}\" =\u003e \"\\e[0;35m\",\n    \"{light_magenta}\" =\u003e \"\\e[1;35m\",\n    \"{cyan}\" =\u003e \"\\e[0;36m\",\n    \"{light_cyan}\" =\u003e \"\\e[1;36m\",\n    \"{bg:black}\" =\u003e \"\\e[40m\",\n    \"{bg:red}\" =\u003e \"\\e[41m\",\n    \"{bg:green}\" =\u003e \"\\e[42m\",\n    \"{bg:yellow}\" =\u003e \"\\e[43m\",\n    \"{bg:blue}\" =\u003e \"\\e[44m\",\n    \"{bg:magenta}\" =\u003e \"\\e[45m\",\n    \"{bg:cyan}\" =\u003e \"\\e[46m\",\n    \"{bg:light_grey}\" =\u003e \"\\e[47m\",\n    \"{bg:light_gray}\" =\u003e \"\\e[47m\",\n];\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchipslays%2Fclify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchipslays%2Fclify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchipslays%2Fclify/lists"}