# Collision

> Readable error reports for PHP command-line apps

Source: https://talira.ai/catalog/collision-z8qf4pds
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / error handling](https://talira.ai/categories/libraries/error-handling), [developer tools / debugging](https://talira.ai/categories/developer-tools/debugging)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Nuno Maduro](https://talira.ai/orgs/nuno-maduro.md)

Collision is a PHP package by Nuno Maduro that shows errors in command-line applications as readable reports: the exception, the lines of code around it and a trimmed stack trace, instead of raw PHP output. It ships with [Laravel](https://talira.ai/catalog/laravel-4d4w140j.md), so Artisan commands and tests use it, and works with Symfony, [PHPUnit](https://talira.ai/catalog/phpunit-bg1qx6g0.md), [Pest](https://talira.ai/catalog/pest-prkx0461.md) and other frameworks. It's built on the Whoops error handler and installed as a Composer dev dependency.

## Links

- GitHub: https://github.com/nunomaduro/collision

## Problems it solves

- make PHP command-line errors readable
- see where an exception happened in my Laravel Artisan command
- get nicer test failure output in PHPUnit or Pest

## Features

- readable error reports for PHP console apps
- shows the code around the error and a trimmed stack trace
- included in Laravel
- works with Symfony, PHPUnit and Pest
- built on the Whoops error handler

## Trust

Overall: 0.54 out of 1.
Signals: maintenance 0.66, adoption 0.73, momentum 0.49, community 0.71, backing 0.30, extensibility 0.00.

- last commit 19 days ago
- 9 commits in the last 90 days
- 4.7k GitHub stars
- 58 contributors
- accepts sponsorship (Github, Patreon, Custom)
- backed by Nuno Maduro

## Related

- Works with [Laravel](https://talira.ai/catalog/laravel-4d4w140j.md)
- Works with [PHPUnit](https://talira.ai/catalog/phpunit-bg1qx6g0.md)
- Works with [Pest](https://talira.ai/catalog/pest-prkx0461.md)

## Alternatives

- [Safe PHP](https://talira.ai/catalog/safe-php-6fvvejcm.md): PHP core functions that throw exceptions instead of returning false

## Sources

[^1]: https://github.com/nunomaduro/collision/blob/v8.x/LICENSE.md (checked 27 Nov 2026)
