PHPackages                             phpspec/nyan-formatters - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. phpspec/nyan-formatters

ActiveExtension[Testing &amp; Quality](/categories/testing)

phpspec/nyan-formatters
=======================

PHPSpec Nyan Formatter Extension

2.0.2(6y ago)77239.9k↓27.3%6[1 issues](https://github.com/phpspec/nyan-formatters/issues)[1 PRs](https://github.com/phpspec/nyan-formatters/pulls)20MITPHPPHP &gt;=5.3.3

Since Jan 5Pushed 6y ago4 watchersCompare

[ Source](https://github.com/phpspec/nyan-formatters)[ Packagist](https://packagist.org/packages/phpspec/nyan-formatters)[ Docs](https://github.com/phpspec/nyan-formatters)[ RSS](/packages/phpspec-nyan-formatters/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (6)Used By (20)

PHPSpec Nyan Formatters Extension
=================================

[](#phpspec-nyan-formatters-extension)

This PHPSpec extension provides Nyan formatters for PHPSpec.

Requirements
------------

[](#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:

- [ANSICON](https://github.com/adoxa/ansicon)
- [ConEmu](https://github.com/Maximus5/ConEmu)

Installation
------------

[](#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](screenshots/formatters/cat.gif)](screenshots/formatters/cat.gif)

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

[![nyan dino formatter preview](screenshots/formatters/dino.gif)](screenshots/formatters/dino.gif)

- `nyan.crab` - Gives a crab formatter

[![nyan crab formatter preview](screenshots/formatters/crab.gif)](screenshots/formatters/crab.gif)

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
-------

[](#authors)

This project was written by:

- [Matthew Davis](https://twitter.com/mdavis1982)
- [Jeff Welch](https://twitter.com/whatthejeff)

Contributions
-------------

[](#contributions)

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

- [Marcello Duarte](https://twitter.com/_md)
- [Jakub Zalas](https://twitter.com/jakub_zalas)
- [Christophe Coevoet](https://twitter.com/stof70)
- [Ciaran McNulty](https://twitter.com/ciaranmcnulty)
- [Wouter J](https://github.com/wouterj)

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity45

Moderate usage in the ecosystem

Community30

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~548 days

Total

5

Last Release

2324d ago

Major Versions

1.0.1 → 2.02016-07-22

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/70713?v=4)[md](/maintainers/md)[@md](https://github.com/md)

![](https://www.gravatar.com/avatar/adbe017ebec901082c02ab3fd307196b2a1c9103c27c8e4327ba5ca25252a8d6?d=identicon)[whatthejeff](/maintainers/whatthejeff)

![](https://www.gravatar.com/avatar/f1b0137c3186276af77ad12c3c3548a4385de8b7f408cad14a5da84931115d79?d=identicon)[mdavis1982](/maintainers/mdavis1982)

---

Top Contributors

[![mdavis1982](https://avatars.githubusercontent.com/u/199807?v=4)](https://github.com/mdavis1982 "mdavis1982 (7 commits)")[![whatthejeff](https://avatars.githubusercontent.com/u/306525?v=4)](https://github.com/whatthejeff "whatthejeff (7 commits)")[![samsonasik](https://avatars.githubusercontent.com/u/459648?v=4)](https://github.com/samsonasik "samsonasik (3 commits)")[![jasonlfunk](https://avatars.githubusercontent.com/u/685188?v=4)](https://github.com/jasonlfunk "jasonlfunk (2 commits)")[![wouterj](https://avatars.githubusercontent.com/u/749025?v=4)](https://github.com/wouterj "wouterj (2 commits)")

---

Tags

phpspecnyan

### Embed Badge

![Health badge](/badges/phpspec-nyan-formatters/health.svg)

```
[![Health](https://phpackages.com/badges/phpspec-nyan-formatters/health.svg)](https://phpackages.com/packages/phpspec-nyan-formatters)
```

###  Alternatives

[whatthejeff/nyancat-phpunit-resultprinter

Nyan Cat result printer for PHPUnit

283689.8k24](/packages/whatthejeff-nyancat-phpunit-resultprinter)[benconstable/phpspec-laravel

Test your Laravel applications with PhpSpec

144347.1k15](/packages/benconstable-phpspec-laravel)[friends-of-phpspec/phpspec-code-coverage

Generate Code Coverage reports for PhpSpec tests

202.6M125](/packages/friends-of-phpspec-phpspec-code-coverage)[ciaranmcnulty/phpspec-typehintedmethods

Extension for phpspec to enhance generated methods

3089.3k31](/packages/ciaranmcnulty-phpspec-typehintedmethods)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
