2017 © Pedro Peláez
 

library nyancat-scoreboard

Nyan Cat Scoreboard

image

whatthejeff/nyancat-scoreboard

Nyan Cat Scoreboard

  • Saturday, May 24, 2014
  • by whatthejeff
  • Repository
  • 0 Watchers
  • 19 Stars
  • 521,666 Installations
  • PHP
  • 4 Dependents
  • 1 Suggesters
  • 2 Forks
  • 0 Open issues
  • 4 Versions
  • 5 % Grown

The README.md

Nyan Cat Scoreboard, (*1)

Requirements

The Nyan Cat scoreboard requires:, (*2)

  • PHP 5.3.3 or later.
  • A terminal emulator with support for ANSI escape sequences, including color and cursor control.

NOTE: By default, the Windows console does not support ANSI escape sequences. If you'd like to use the Nyan Cat scoreboard on Windows, you may want to try one of the following solutions:, (*3)

Installation

The recommended way to install the Nyan Cat Scoreboard is through composer. Just create a composer.json file and run the php composer.phar install command to install it:, (*4)

{
    "require": {
        "whatthejeff/nyancat-scoreboard": "~1.1"
    }
}

Example

require_once 'vendor/autoload.php';

use NyanCat\Cat;
use NyanCat\Rainbow;
use NyanCat\Team;
use NyanCat\Scoreboard;

use Fab\SuperFab;

$scoreboard = new Scoreboard(
    new Cat(),
    new Rainbow(
        new SuperFab()
    ),
    array(
        new Team('pass', 'green', '^'),
        new Team('fail', 'red', 'o'),
        new Team('pending', 'cyan', '-'),
    )
);

$scoreboard->start();
for ($i = 0; $i <= 200; $i++) {
    usleep(90000);
    $scoreboard->score('pass');
}
$scoreboard->stop();

Tests

Build Status, (*5)

To run the test suite, you need composer., (*6)

$ php composer.phar install --dev
$ vendor/bin/phpunit

License

The Nyan Cat Scoreboard is licensed under the MIT license., (*7)

The Versions

24/05 2014

dev-master

9999999-dev http://github.com/whatthejeff/nyancat-scoreboard

Nyan Cat Scoreboard

  Sources   Download

MIT

The Requires

 

The Development Requires

tests cat nyan rainbow scoreboard

12/02 2014

v1.1.1

1.1.1.0 http://github.com/whatthejeff/nyancat-scoreboard

Nyan Cat Scoreboard

  Sources   Download

MIT

The Requires

 

The Development Requires

tests cat nyan rainbow scoreboard

06/06 2013

v1.1.0

1.1.0.0 http://github.com/whatthejeff/nyancat-scoreboard

Nyan Cat Scoreboard

  Sources   Download

MIT

The Requires

 

The Development Requires

tests cat nyan rainbow scoreboard

06/06 2013

v1.0.0

1.0.0.0 http://github.com/whatthejeff/nyancat-scoreboard

Nyan Cat Scoreboard

  Sources   Download

MIT

The Requires

 

The Development Requires

tests cat nyan rainbow scoreboard