2017 © Pedro Peláez
 

library shellstyle

ShellStyle is a simple php class that allows you to get wrapped Unix/Linux colored output with ANSI escape codes

image

gobwas/shellstyle

ShellStyle is a simple php class that allows you to get wrapped Unix/Linux colored output with ANSI escape codes

  • Tuesday, January 8, 2013
  • by gobwas
  • Repository
  • 2 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

README

ShellStyle

ShellStyle is a simple php class that allows you to get wrapped Unix/Linux colored output with ANSI escape codes:, (*1)

Usage

Usage of ShellStyle is quite simple:, (*2)

use Gobwas\ShellStyle\ShellStyle;

// First way to define style
$green = new ShellStyle();
$green
    ->addStyle(ShellStyle::FOREGROUND_GREEN)
    ->addStyle(ShellStyle::STYLE_BOLD);

// Another way to define style
$yellow = new ShellStyle(array(ShellStyle::FOREGROUND_YELLOW));

echo $green->parse("Hello");
echo $yellow->parse("World!");

The Versions

08/01 2013

dev-master

9999999-dev http://github.com/gobwas/shellstyle

ShellStyle is a simple php class that allows you to get wrapped Unix/Linux colored output with ANSI escape codes

  Sources   Download

GPL3

The Requires

  • php >=5.3.0

 

output echo color

08/01 2013

1.0.0-alpha.1

1.0.0.0-alpha1 http://github.com/gobwas/shellstyle

ShellStyle is a simple php class that allows you to get wrapped Unix/Linux colored output with ANSI escape codes

  Sources   Download

GPL3

The Requires

  • php >=5.3.0

 

output echo color