2017 © Pedro Peláez
 

library terminal-style

Return your terminal message in style! Change the text style, text color and text background color form the terminal interface with ANSI color codes. The terminal style tool support Laravel and Composer.

image

bvanhoekelen/terminal-style

Return your terminal message in style! Change the text style, text color and text background color form the terminal interface with ANSI color codes. The terminal style tool support Laravel and Composer.

  • Monday, February 19, 2018
  • by Bart van Hoekelen
  • Repository
  • 1 Watchers
  • 10 Stars
  • 13,054 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 42 % Grown

The README.md

PHP Terminal style

Hex.pm GitHub release Packagist Github issues, (*1)

Highlight

How to use

 echo terminal_style($message = null, $color = null, $background = null, $style = null);

Text color

PHP Terminal style set text color, (*2)

Code example

// Print red text 
echo terminal_style('Here your text', 'red');

Text color names

Use can use: default, yellow, red, green, light-gray ..., (*3)

See the full color name list here, (*4)

Background color

PHP Terminal style set background color, (*5)

Code example

// Print text with background red
echo terminal_style('Here your text', null, 'red');

Background colors names

Use can use: default, yellow, red, green, light-gray ..., (*6)

See the full background color name list here or see custom background color, (*7)

Text style

PHP Terminal style set style, (*8)

Code example

// Print text style bold
echo terminal_style('Here your text', null, null, 'bold');

Text styles

Use can use: default, bold, dim, italic, underlined, 'blink' ..., (*9)

See the full text style name list here, (*10)

Help, docs and links

Backlog & Feedback

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. - Open backlog - Create issues, (*11)

Installation

Install with Laravel

Get PHP terminal style tool by running the Composer command in the command line. ```{r, engine='bash', count_lines} $ composer require bvanhoekelen/terminal-style, (*12)


Open your file and use `terminal_style()` ```php // Print red text echo terminal_style('Here your text', 'red');

Install with composer

Get PHP terminal style tool by running the Composer command in the command line. ```{r, engine='bash', count_lines} $ composer require bvanhoekelen/terminal-style, (*13)


Open your file and use `terminal_style()` ```php // Require vender autoload require_once('../vendor/autoload.php'); // Print red text echo terminal_style('Here your text', 'red');

Overview

PHP Terminal style all styles, (*14)

Custom background

PHP Terminal style custom backgroud, (*15)

See custom background color, (*16)

The Versions

19/02 2018

dev-master

9999999-dev

Return your terminal message in style! Change the text style, text color and text background color form the terminal interface with ANSI color codes. The terminal style tool support Laravel and Composer.

  Sources   Download

Apache-2.0 Apache License 2.0

The Requires

  • php >=5.4.0

 

The Development Requires

php terminal ansi bash colors command line terminal colors php terminal colors php terminal style command line colors command line style 8-bits background color ansi color codes

19/02 2018

v1.0.4

1.0.4.0

Return your terminal message in style! Change the text style, text color and text background color form the terminal interface with ANSI color codes. The terminal style tool support Laravel and Composer.

  Sources   Download

Apache-2.0

The Requires

  • php >=5.4.0

 

The Development Requires

php terminal ansi bash colors command line terminal colors php terminal colors php terminal style command line colors command line style 8-bits background color ansi color codes

19/02 2018

dev-develop

dev-develop

Return your terminal message in style! Change the text style, text color and text background color form the terminal interface with ANSI color codes. The terminal style tool support Laravel and Composer.

  Sources   Download

Apache-2.0 Apache License 2.0

The Requires

  • php >=5.4.0

 

The Development Requires

php terminal ansi bash colors command line terminal colors php terminal colors php terminal style command line colors command line style 8-bits background color ansi color codes

20/11 2017

v1.0.3

1.0.3.0

Return your terminal message in style! Change the text style, text color and text background color form the terminal interface with ANSI color codes. The terminal style tool support Laravel and Composer.

  Sources   Download

Apache License 2.0

The Requires

  • php >=5.4.0

 

The Development Requires

php terminal ansi bash colors command line terminal colors php terminal colors php terminal style command line colors command line style 8-bits background color ansi color codes

18/05 2017

v1.0.2

1.0.2.0

Return your terminal message in style! Change the text style, text color and text background color form the terminal interface with ANSI color codes. The terminal style tool support Laravel and Composer.

  Sources   Download

Apache License 2.0

The Requires

 

The Development Requires

php terminal ansi bash colors command line terminal colors php terminal colors php terminal style command line colors command line style 8-bits background color ansi color codes

26/04 2017

v1.0.1

1.0.1.0

Return your terminal message in style! The terminal style tool support Laravel and Composer.

  Sources   Download

Apache License 2.0

The Requires

 

The Development Requires

php terminal ansi bash colors command line terminal colors php terminal colors php terminal style command line colors command line style

20/04 2017

v1.0.0

1.0.0.0

Return your terminal message in style! The terminal style tool support Laravel and Composer.

  Sources   Download

Apache License 2.0

The Requires

 

The Development Requires

php terminal ansi bash colors command line terminal colors php terminal colors php terminal style command line colors command line style