2017 © Pedro Peláez
 

library php-console

Utilities for console output and text animations

image

robotdance/php-console

Utilities for console output and text animations

  • Friday, June 24, 2016
  • by MarcosMenegazzo
  • Repository
  • 1 Watchers
  • 1 Stars
  • 37 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

PHP-Console

Code Climate Test Coverage Issue Count, (*1)

PHP-Console is an utility class for console output and text animations., (*2)

Animations (new!)

You can produce ASC Art animations using a simple sprite structure and animate them in your console output., (*3)

use robotdance/Sprite;
...
$spr = new Sprite('./sprites/blinking_programmer.spr');
echo $spr->animate();
}

That will produce a programmer blinking his eyes in front of the computer:, (*4)

Blinking programmer GIF, (*5)

The sprite files are easy to build. A fast hack into the example vim sprites/blinking_programmer.spr and the sprite class vim src/Sprite.php will show you how to make your own animations. Have fun!, (*6)

Ansi color output examples

use robotdance/Console;
...
echo Console::red('Bob is going home'); // red text
echo Console::apply('Bob is going home', ['red', 'bold']); // red and bold text
echo Console::indent('Bob is going home', 4, 2); two levels of identation
}


Please take a look at the source comments and generate docs through PHPDocumentor to learn more., (*7)

Setup

PHP-Console uses Composer as dependency manager., (*8)

$ composer install, (*9)

You may also generate documentation:, (*10)

$ ./bin/phpdoc -d ./src/ -t ./docs/, (*11)

Testing

$ ./bin/phpunit, (*12)

Contribute

Fork, code your tests and modifications, write a good commit message and submit a pull request. All tests must pass and the coverage must remains at 100%., (*13)

The Versions

24/06 2016

dev-master

9999999-dev https://github.com/robotdance/php-console

Utilities for console output and text animations

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marcos Menegazzo

php console cli output colors utilities animations

24/06 2016

v0.0.6

0.0.6.0 https://github.com/robotdance/php-console

Utilities for console output and text animations

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marcos Menegazzo

php console cli output colors utilities animations

13/06 2016

v0.0.5

0.0.5.0 https://github.com/robotdance/php-console

Utilities for console output and command line interface PHP scrips.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marcos Menegazzo

php console cli output colors utilities

13/06 2016

v0.0.4

0.0.4.0 https://github.com/robotdance/php-console

Utilities for console output and command line interface PHP scrips.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marcos Menegazzo

php console cli output colors utilities

10/06 2016

v0.0.3

0.0.3.0 https://github.com/robotdance/php-console

Utilities for console output and command line interface PHP scrips.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marcos Menegazzo

php console cli output colors utilities

06/06 2016

v0.0.2

0.0.2.0 https://github.com/robotdance/php-console

Utilities for console output and command line interface PHP scrips.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marcos Menegazzo

php console cli output colors utilities

02/06 2016

v0.0.1

0.0.1.0 https://github.com/robotdance/php-console

Utilities for console output and command line interface PHP scrips.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marcos Menegazzo

php console cli output colors utilities