phpspec/nyan-formatters

PHPSpec Nyan Formatter Extension

Package info

github.com/phpspec/nyan-formatters

Type:extension

pkg:composer/phpspec/nyan-formatters

Statistics

Installs: 240 487

Dependents: 29

Suggesters: 7

Stars: 77

Open Issues: 2

2.0.2 2020-01-07 09:35 UTC

Requires

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 641fe7a210a8100d03f804a7cf5c4ea73c6c3ce2

  • Matthew Davis <matt.woop@mattdavis.co.uk>
  • Jeff Welch <whatthejeff.woop@gmail.com>

phpspecnyan

This package is not auto-updated.

Last update: 2026-06-17 15:42:29 UTC


README

This PHPSpec extension provides Nyan formatters for PHPSpec.

Requirements

This extension 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 this extension on Windows, you may want to try one of the following solutions:

Installation

To install this, make sure you are using the latest release of PHPSpec, and then add the following to your composer.json:

"require-dev": {
 ...,
 "phpspec/nyan-formatters": "2.*"
}

Install or update your dependencies, and then in a phpspec.yml file in the root of your project, add the following:

extensions:
 PhpSpec\NyanFormattersExtension\Extension: ~

Then, you can add a --format switch to your phpspec command with one of the following values:

  • nyan.cat - Gives the standard Nyan Cat formatter

👁 nyan cat formatter preview

  • nyan.dino - Gives a dinosaur formatter - Rawwr!

👁 nyan dino formatter preview

  • nyan.crab - Gives a crab formatter

👁 nyan crab formatter preview

If you want to use one of the formatters all the time, you can enforce a default by adding a formatter.name option in the phpspec.yml file as follows:

formatter.name: nyan.dino

Authors

This project was written by:

Contributions

This project wouldn't have been possible without the help and support of the following people: