Download the PHP package whatthejeff/nyancat-scoreboard without Composer
On this page you can find all versions of the php package whatthejeff/nyancat-scoreboard. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download whatthejeff/nyancat-scoreboard
More information about whatthejeff/nyancat-scoreboard
Files in whatthejeff/nyancat-scoreboard
Download whatthejeff/nyancat-scoreboard
More information about whatthejeff/nyancat-scoreboard
Files in whatthejeff/nyancat-scoreboard
Vendor whatthejeff
Package nyancat-scoreboard
Short Description Nyan Cat Scoreboard
License MIT
Homepage http://github.com/whatthejeff/nyancat-scoreboard
Package nyancat-scoreboard
Short Description Nyan Cat Scoreboard
License MIT
Homepage http://github.com/whatthejeff/nyancat-scoreboard
Please rate this library. Is it a good library?
Informations about the package nyancat-scoreboard
Requirements
The Nyan Cat scoreboard requires:
- 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:
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:
{
"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
To run the test suite, you need composer.
$ php composer.phar install --dev
$ vendor/bin/phpunit
License
The Nyan Cat Scoreboard is licensed under the MIT license.
All versions of nyancat-scoreboard with dependencies
PHP Build Version
Package Version
The package whatthejeff/nyancat-scoreboard contains the following files
Loading the files please wait ....