{"id":20737110,"url":"https://github.com/phpexpertsinc/consolepainter","last_synced_at":"2025-04-24T01:41:59.024Z","repository":{"id":53323399,"uuid":"191952443","full_name":"PHPExpertsInc/ConsolePainter","owner":"PHPExpertsInc","description":"BEAUTIFUL Console Colors via a Fluent Interface.","archived":false,"fork":false,"pushed_at":"2021-03-31T13:05:44.000Z","size":25,"stargazers_count":10,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T20:05:18.391Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/PHPExpertsInc.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":"2019-06-14T13:59:14.000Z","updated_at":"2024-01-03T00:46:30.000Z","dependencies_parsed_at":"2022-09-02T04:23:04.866Z","dependency_job_id":null,"html_url":"https://github.com/PHPExpertsInc/ConsolePainter","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHPExpertsInc%2FConsolePainter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHPExpertsInc%2FConsolePainter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHPExpertsInc%2FConsolePainter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHPExpertsInc%2FConsolePainter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PHPExpertsInc","download_url":"https://codeload.github.com/PHPExpertsInc/ConsolePainter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250545663,"owners_count":21448247,"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-11-17T06:13:33.944Z","updated_at":"2025-04-24T01:41:59.003Z","avatar_url":"https://github.com/PHPExpertsInc.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ConsolePainter\n\n[![TravisCI](https://travis-ci.org/phpexpertsinc/ConsolePainter.svg?branch=master)](https://travis-ci.org/phpexpertsinc/ConsolePainter)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/1eef8c643548226efa69/test_coverage)](https://codeclimate.com/github/phpexpertsinc/ConsolePainter/test_coverage)\n\nConsolePainter is a PHP Experts, Inc., Project that enables easy color and stylization of ANSI terminals.\n\nIt strives to conform to the standard ANSI terminal colors as documented at\nhttps://misc.flogisoft.com/bash/tip_colors_and_formatting\n\n![image](https://user-images.githubusercontent.com/1125541/59557043-0a774b00-8f95-11e9-87cb-223afd9130ca.png)\n\n## Installation\n\nVia Composer\n\n```bash\ncomposer require phpexperts/console-painter\n```\n\n## Usage\n\n```php\nuse PHPExperts\\ConsolePainter\\ConsolePainter;\n\n$p = new ConsolePainter();\n\n// This is *REALLY* emphasized!\necho \"\\t\" . $p-\u003eitalics('This is ') .\n    $p-\u003ebold('*') . $p-\u003ebold()-\u003eunderlined()-\u003eyellow('*REALLY*') .\n    $p-\u003ebold()-\u003eonLightBlue(' emphasized*') . '!' . \"\\n\";\n\necho $p-\u003eyellow('Press ')-\u003ebolder()-\u003ered('ENTER')-\u003eyellow(' to continue...') . \"\\n\";\n\necho \"\\n\";\n\n// Draw the Red, White and Blue:\necho $p-\u003ebolder()-\u003ered('Red')-\u003edim(', ')-\u003eitalics()-\u003ewhite('White ')-\u003edim('and ')-\u003eblue('Blue') . \"\\n\";\n```\n\nThis will output:\n\n![image](https://user-images.githubusercontent.com/1125541/59557118-15cb7600-8f97-11e9-9a0f-dc0b50898f79.png)\n\nYou can even make really complex ASCII art with it. Here is a derivation of \nthe European Union logo:\n\n![image](https://user-images.githubusercontent.com/1125541/59557060-7659b380-8f95-11e9-98df-2a82bbdaae72.png)\n\n## Demos\n\n### Basic styles:\n\n![image](https://user-images.githubusercontent.com/1125541/59557043-0a774b00-8f95-11e9-87cb-223afd9130ca.png)\n\n### Complex text styling\n\n![image](https://user-images.githubusercontent.com/1125541/59557055-50ccaa00-8f95-11e9-8fa5-d435efc5d688.png)\n\n### ASCII Art\n\n![image](https://user-images.githubusercontent.com/1125541/59557060-7659b380-8f95-11e9-98df-2a82bbdaae72.png)\n\n## Use cases\n\nConsolePainter: Stylization  \n ✔ Can bold text  \n ✔ Can italicize text  \n ✔ Can underline text  \n ✔ Can dim text  \n ✔ Can blink text  \n ✔ Can hide text  \n ✔ Can invert the text style  \n ✔ All combinations of stylizations work  \n\nConsolePainter: Foreground Colors  \n ✔ Can make the text the default color  \n ✔ Can make the text black  \n ✔ Can make the text dark grey  \n ✔ Can make the text blue  \n ✔ Can make the text light blue  \n ✔ Can make the text green  \n ✔ Can make the text light green  \n ✔ Can make the text cyan  \n ✔ Can make the text light cyan  \n ✔ Can make the text red  \n ✔ Can make the text light red  \n ✔ Can make the text purple  \n ✔ Can make the text light purple  \n ✔ Can make the text brown  \n ✔ Can make the text yellow  \n ✔ Can make the text light gray  \n ✔ Can make the text white  \n ✔ Can chain two or more colored words together  \n ✔ Can chain two or more colored words together with a background  \n ✔ Can make the european union logo  \n\n## Testing\n\n```bash\nphpunit --testdox\n```\n\n## Contributors\n\n[Theodore R. Smith](https://www.phpexperts.pro/]) \u003ctheodore@phpexperts.pro\u003e  \nGPG Fingerprint: 4BF8 2613 1C34 87AC D28F  2AD8 EB24 A91D D612 5690  \nCEO: PHP Experts, Inc.\n\n## License\n\nMIT license. Please see the [license file](LICENSE) for more information.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpexpertsinc%2Fconsolepainter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphpexpertsinc%2Fconsolepainter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpexpertsinc%2Fconsolepainter/lists"}