Package Data | |
---|---|
Maintainer Username: | Bart van Hoekelen |
Package Create Date: | 2017-04-20 |
Package Last Update: | 2020-01-31 |
Home Page: | |
Language: | PHP |
License: | Apache-2.0 |
Last Refreshed: | 2024-11-25 15:02:11 |
Package Statistics | |
---|---|
Total Downloads: | 643,903 |
Monthly Downloads: | 13,409 |
Daily Downloads: | 890 |
Total Stars: | 19 |
Total Watchers: | 1 |
Total Forks: | 11 |
Total Open Issues: | 1 |
echo terminal_style($message = null, $color = null, $background = null, $style = null);
// Print red text
echo terminal_style('Here your text', 'red');
Use can use: default
, yellow
, red
, green
, light-gray
...
See the full color name list here
// Print text with background red
echo terminal_style('Here your text', null, 'red');
Use can use: default
, yellow
, red
, green
, light-gray
...
See the full background color name list here or see custom background color
// Print text style bold
echo terminal_style('Here your text', null, null, 'bold');
Use can use: default
, bold
, dim
, italic
, underlined
, 'blink' ...
See the full text style name list here
If you have any suggestions to improve this php terminal style tool? Please add your feature, bug or improvement to the BACKLOG.dm. Or create a issues.
Get PHP terminal style tool by running the Composer command in the command line.
$ composer require bvanhoekelen/terminal-style
Open your file and use terminal_style()
// Print red text
echo terminal_style('Here your text', 'red');
Get PHP terminal style tool by running the Composer command in the command line.
$ composer require bvanhoekelen/terminal-style
Open your file and use terminal_style()
// Require vender autoload
require_once('../vendor/autoload.php');
// Print red text
echo terminal_style('Here your text', 'red');