{"id":16954311,"url":"https://github.com/bvanhoekelen/terminal-style","last_synced_at":"2025-03-22T13:31:39.397Z","repository":{"id":38375694,"uuid":"88886215","full_name":"bvanhoekelen/terminal-style","owner":"bvanhoekelen","description":"🎨 Return your terminal message in style! Change the text style, text color and text background color from the terminal, console or shell interface with ANSI color codes. Support for Laravel and Composer.","archived":false,"fork":false,"pushed_at":"2020-01-31T17:59:22.000Z","size":1803,"stargazers_count":19,"open_issues_count":1,"forks_count":11,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T11:39:37.004Z","etag":null,"topics":["ansi","bash","color","command-line","command-line-tool","php","style","terminal"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bvanhoekelen.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-04-20T16:17:04.000Z","updated_at":"2024-09-07T14:27:14.000Z","dependencies_parsed_at":"2022-09-21T05:34:11.068Z","dependency_job_id":null,"html_url":"https://github.com/bvanhoekelen/terminal-style","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bvanhoekelen%2Fterminal-style","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bvanhoekelen%2Fterminal-style/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bvanhoekelen%2Fterminal-style/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bvanhoekelen%2Fterminal-style/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bvanhoekelen","download_url":"https://codeload.github.com/bvanhoekelen/terminal-style/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244962873,"owners_count":20539238,"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":["ansi","bash","color","command-line","command-line-tool","php","style","terminal"],"created_at":"2024-10-13T22:09:24.042Z","updated_at":"2025-03-22T13:31:39.097Z","avatar_url":"https://github.com/bvanhoekelen.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP Terminal style\n[![Hex.pm](https://img.shields.io/hexpm/l/plug.svg?maxAge=2592000\u0026style=flat-square)](https://github.com/bvanhoekelen/terminal-style/blob/master/LICENSE)\n[![GitHub release](https://img.shields.io/github/release/bvanhoekelen/terminal-style.svg?style=flat-square)](https://github.com/bvanhoekelen/terminal-style/releases)\n[![Packagist](https://img.shields.io/packagist/dt/bvanhoekelen/terminal-style.svg?style=flat-square)](https://packagist.org/packages/bvanhoekelen/terminal-style)\n[![Github issues](https://img.shields.io/github/issues/bvanhoekelen/terminal-style.svg?style=flat-square)](https://github.com/bvanhoekelen/terminal-style/issues)\n\n## Highlight\n- The easiest way to style your text in the command line / terminal\n- Change text color to red, green, yellow ...  » [Text color](#text-color)\n- Change background color to red, green, yellow ...  » [Background color](#background-color)\n- Change background in customer 8-bit color  » [Custom background color](https://github.com/bvanhoekelen/terminal-style/wiki/style-%C2%BB-custom-background)\n- Change text style to bold, dim, underlined, blink ...  » [Text style](#text-style)\n- Support for Laravel framework » [Laravel](https://laravel.com)\n- Easy to install » [installation](#installation)\n- Love feedback » [backlog](https://github.com/bvanhoekelen/terminal-style/blob/master/BACKLOG.md) or [create issues](https://github.com/bvanhoekelen/terminal-style/issues)\n\n## How to use\n```php\n echo terminal_style($message = null, $color = null, $background = null, $style = null);\n```\n\n## Text color\n\u003cp align=\"center\"\u003e\u003cimg src=\"/assets/terminal-text-color.png\" alt=\"PHP Terminal style set text color\" /\u003e\u003c/p\u003e\n\n### Code example\n```php\n// Print red text \necho terminal_style('Here your text', 'red');\n```\n### Text color names\nUse can use: `default`, `yellow`, `red`, `green`, `light-gray` [...](https://github.com/bvanhoekelen/terminal-style/wiki/style-%C2%BB-text-color-names)\n\nSee [the full color name list here](https://github.com/bvanhoekelen/terminal-style/wiki/style-%C2%BB-text-color-names)\n\n## Background color\n\u003cp align=\"center\"\u003e\u003cimg src=\"/assets/terminal-background-color.png\" alt=\"PHP Terminal style set background color\" /\u003e\u003c/p\u003e\n\n### Code example\n```php\n// Print text with background red\necho terminal_style('Here your text', null, 'red');\n```\n### Background colors names\nUse can use: `default`, `yellow`, `red`, `green`, `light-gray` [...](https://github.com/bvanhoekelen/terminal-style/wiki/style-%C2%BB-background-color-names)\n\nSee [the full background color name list here](https://github.com/bvanhoekelen/terminal-style/wiki/style-%C2%BB-background-color-names) or see [custom background color](https://github.com/bvanhoekelen/terminal-style/wiki/style-%C2%BB-custom-background)\n\n## Text style\n\u003cp align=\"center\"\u003e\u003cimg src=\"/assets/terminal-text-style.png\" alt=\"PHP Terminal style set style\" /\u003e\u003c/p\u003e\n\n### Code example\n```php\n// Print text style bold\necho terminal_style('Here your text', null, null, 'bold');\n```\n### Text styles\n\nUse can use: `default`, `bold `, `dim`, `italic`, `underlined`, 'blink' [...](https://github.com/bvanhoekelen/terminal-style/wiki/style-%C2%BB-text-style-names)\n\nSee [the full text style name list here](https://github.com/bvanhoekelen/terminal-style/wiki/style-%C2%BB-text-style-names)\n\n# Help, docs and links\n- [Wiki](https://github.com/bvanhoekelen/terminal-style/wiki)\n- [Backlog](https://github.com/bvanhoekelen/terminal-style/blob/master/BACKLOG.md)\n- [Change log](https://github.com/bvanhoekelen/terminal-style/blob/master/CHANGELOG.md)\n- [Packagist](https://packagist.org/packages/bvanhoekelen/terminal-style)\n\n## Backlog \u0026 Feedback\nIf you have any suggestions to improve this php terminal style tool? Please add your feature, bug or improvement to the [BACKLOG.dm](https://github.com/bvanhoekelen/terminal-style/blob/master/BACKLOG.md). Or create a [issues](https://github.com/bvanhoekelen/terminal-style/issues).\n- [Open backlog](https://github.com/bvanhoekelen/terminal-style/blob/master/BACKLOG.md)\n- [Create issues](https://github.com/bvanhoekelen/terminal-style/issues)\n\n\n# Installation\n\n## Install with Laravel\nGet PHP terminal style tool by running the Composer command in the command line. \n```{r, engine='bash', count_lines}\n $ composer require bvanhoekelen/terminal-style\n```\n\nOpen your file and use `terminal_style()`\n```php\n// Print red text \necho terminal_style('Here your text', 'red');\n\n```\n\n## Install with composer\nGet PHP terminal style tool by running the Composer command in the command line. \n```{r, engine='bash', count_lines}\n $ composer require bvanhoekelen/terminal-style\n```\n\nOpen your file and use `terminal_style()`\n```php\n// Require vender autoload\nrequire_once('../vendor/autoload.php');\n\n// Print red text \necho terminal_style('Here your text', 'red');\n\n```\n\n## Overview\n\u003cp align=\"center\"\u003e\u003cimg src=\"/assets/terminal-all-styles.png\" alt=\"PHP Terminal style all styles\" /\u003e\u003c/p\u003e\n\n## Custom background\n\u003cp align=\"center\"\u003e\u003cimg src=\"/assets/terminal-custom-background.png\" alt=\"PHP Terminal style custom backgroud\" /\u003e\u003c/p\u003e\n\nSee [custom background color](https://github.com/bvanhoekelen/terminal-style/wiki/style-%C2%BB-custom-background)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbvanhoekelen%2Fterminal-style","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbvanhoekelen%2Fterminal-style","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbvanhoekelen%2Fterminal-style/lists"}