{"id":17098854,"url":"https://github.com/wujunze/php-cli-color","last_synced_at":"2025-04-12T23:44:23.244Z","repository":{"id":57082791,"uuid":"85275516","full_name":"wujunze/php-cli-color","owner":"wujunze","description":"Simple and easy to use the PHP command-line output of color","archived":false,"fork":false,"pushed_at":"2018-12-12T12:32:43.000Z","size":32,"stargazers_count":42,"open_issues_count":0,"forks_count":17,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-12T23:44:06.595Z","etag":null,"topics":["php","php-cli","php-library","terminal"],"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/wujunze.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":"2017-03-17T05:48:19.000Z","updated_at":"2024-10-25T14:54:03.000Z","dependencies_parsed_at":"2022-08-24T14:58:22.831Z","dependency_job_id":null,"html_url":"https://github.com/wujunze/php-cli-color","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wujunze%2Fphp-cli-color","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wujunze%2Fphp-cli-color/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wujunze%2Fphp-cli-color/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wujunze%2Fphp-cli-color/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wujunze","download_url":"https://codeload.github.com/wujunze/php-cli-color/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248647256,"owners_count":21139081,"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":["php","php-cli","php-library","terminal"],"created_at":"2024-10-14T15:08:18.421Z","updated_at":"2025-04-12T23:44:23.212Z","avatar_url":"https://github.com/wujunze.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# php-cli-color\nSimple and easy to use the PHP command-line output of color\n\n\n\n[![Build Status](https://travis-ci.org/wujunze/php-cli-color.svg?branch=master)](https://travis-ci.org/wujunze/php-cli-color)\n[![codecov](https://codecov.io/gh/wujunze/php-cli-color/branch/master/graph/badge.svg)](https://codecov.io/gh/wujunze/php-cli-color)\n[![Latest Stable Version](https://poser.pugx.org/wujunze/php-cli-color/v/stable)](https://packagist.org/packages/wujunze/php-cli-color) [![Total Downloads](https://poser.pugx.org/wujunze/php-cli-color/downloads)](https://packagist.org/packages/wujunze/php-cli-color) [![License](https://poser.pugx.org/wujunze/php-cli-color/license)](https://packagist.org/packages/wujunze/php-cli-color)\n\n## Installation\n\n`composer require wujunze/php-cli-color`\n\n## How to use\n```php\n\u003c?php\n\nrequire_once __DIR__ . './../vendor/autoload.php';\n\n$colors = new Wujunze\\Colors();\n// Test some basic printing with Colors class\necho $colors-\u003egetColoredString(\"Testing Colors class, this is purple string on yellow background.\", \"purple\", \"yellow\");\necho $colors-\u003egetColoredString(\"Testing Colors class, this is blue string on light gray background.\", \"blue\", \"light_gray\");\necho $colors-\u003egetColoredString(\"Testing Colors class, this is red string on black background.\", \"red\", \"black\");\necho $colors-\u003egetColoredString(\"Testing Colors class, this is cyan string on green background.\", \"cyan\", \"green\");\necho $colors-\u003egetColoredString(\"Testing Colors class, this is cyan string on default background.\", \"cyan\");\necho $colors-\u003egetColoredString(\"Testing Colors class, this is default string on cyan background.\", null, \"cyan\");\n```\n\n## run result\n\n![code run result](https://camo.githubusercontent.com/5509dd50a0f9fb194a6bc2a36153934e3d74e1d9/687474703a2f2f7777342e73696e61696d672e636e2f6c617267652f303036306c6d3754677931666470747672373062646a33306e6c3037327a6c642e6a7067)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwujunze%2Fphp-cli-color","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwujunze%2Fphp-cli-color","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwujunze%2Fphp-cli-color/lists"}