PHPackages                             peterfox/phpstan-toon-formatter - 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. peterfox/phpstan-toon-formatter

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

peterfox/phpstan-toon-formatter
===============================

A TOON output formatter for PHPStan

v1.1.0(5mo ago)44.7k↑1635.7%1[2 PRs](https://github.com/peterfox/phpstan-toon-formatter/pulls)1MITPHPPHP ^8.4CI passing

Since Jan 20Pushed 2mo agoCompare

[ Source](https://github.com/peterfox/phpstan-toon-formatter)[ Packagist](https://packagist.org/packages/peterfox/phpstan-toon-formatter)[ Docs](https://github.com/peterfox/phpstan-toon-formatter)[ GitHub Sponsors](https://github.com/peterfox)[ RSS](/packages/peterfox-phpstan-toon-formatter/feed)WikiDiscussions main Synced 2d ago

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

A TOON output formatter for PHPStan
===================================

[](#a-toon-output-formatter-for-phpstan)

[![Latest Version on Packagist](https://camo.githubusercontent.com/c0c66fbff9bdc4ea7760b8144cf5dbd0fc7e69f44fafc0e3af81820c9b779b5f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7065746572666f782f7068707374616e2d746f6f6e2d666f726d61747465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/peterfox/phpstan-toon-formatter)[![Tests](https://camo.githubusercontent.com/7d9236d9ddb2e9c578a6e5a807d0add7d7d571384d126bde7fd53101ded5c699/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7065746572666f782f7068707374616e2d746f6f6e2d666f726d61747465722f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/peterfox/phpstan-toon-formatter/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/be5acfce20157bea32337aecaf454bb61153af65e6694e535c02b48f115c97d9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7065746572666f782f7068707374616e2d746f6f6e2d666f726d61747465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/peterfox/phpstan-toon-formatter)

A PHPStan error formatter that outputs errors in the [TOON](https://github.com/helgesverre/toon-php) (Typed Object-Oriented Notation) format.

The purpose of this package is to make it easier to integrate PHPStan into your CI pipeline and reduce the amount of tokens spent when working with AI agents.

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

[](#installation)

You can install the package via composer:

```
composer require peterfox/phpstan-toon-formatter --dev
```

If you have `phpstan/extension-installer` installed, you're all set! The formatter will be automatically registered.

If you don't use the extension installer, you can manually include the configuration in your `phpstan.neon` or `phpstan.neon.dist` file:

```
includes:
    - vendor/peterfox/phpstan-toon-formatter/extension.neon
```

Usage
-----

[](#usage)

To use the TOON formatter, run PHPStan with the `--error-format=toon` option:

```
vendor/bin/phpstan analyse --error-format=toon
```

Testing
-------

[](#testing)

If you want to further develop this package, please refer to the [CONTRIBUTING](https://github.com/peterfox/phpstan-toon-formatter/blob/main/CONTRIBUTING.md) guide.

Tests can be run using:

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Peter Fox](https://github.com/peterfox)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance79

Regular maintenance activity

Popularity27

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.9% of commits — single point of failure

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 ~3 days

Total

2

Last Release

162d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/15fcbffff7260a7e75c3f8600eb112b9447aaa5926965ba5376881ef50b9ab8b?d=identicon)[peterfox](/maintainers/peterfox)

---

Top Contributors

[![peterfox](https://avatars.githubusercontent.com/u/1716506?v=4)](https://github.com/peterfox "peterfox (16 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![HelgeSverre](https://avatars.githubusercontent.com/u/1089652?v=4)](https://github.com/HelgeSverre "HelgeSverre (1 commits)")

---

Tags

PHPStanaitoonpeterfoxphpstan-toon-formatterphpstan-error-formatter

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/peterfox-phpstan-toon-formatter/health.svg)

```
[![Health](https://phpackages.com/badges/peterfox-phpstan-toon-formatter/health.svg)](https://phpackages.com/packages/peterfox-phpstan-toon-formatter)
```

###  Alternatives

[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.5k55.4M8.4k](/packages/larastan-larastan)[phpstan/phpstan-symfony

Symfony Framework extensions and rules for PHPStan

79475.7M2.2k](/packages/phpstan-phpstan-symfony)[shipmonk/dead-code-detector

Dead code detector to find unused PHP code via PHPStan extension. Can automatically remove dead PHP code. Supports libraries like Symfony, Doctrine, PHPUnit etc. Detects dead cycles. Can detect dead code that is tested.

4853.5M91](/packages/shipmonk-dead-code-detector)[phpstan/phpstan-doctrine

Doctrine extensions for PHPStan

67272.8M1.4k](/packages/phpstan-phpstan-doctrine)[ekino/phpstan-banned-code

Detected banned code using PHPStan

3016.2M119](/packages/ekino-phpstan-banned-code)[staabm/phpstan-dba

2942.6M2](/packages/staabm-phpstan-dba)

PHPackages © 2026

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