Collision

Beautiful command-line error reporting for PHP apps and test suites

Library
Composer
vv8.9.5
4,659 stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
54 /100 Fair
Development Activity 44
Maintenance 16
Community 56
Maturity 60
Momentum 40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation. How we score it →
82 /100 Excellent
Architecture 82
Code Quality 84
Innovation 74
Learning Curve 90

Collision is a PHP package that delivers beautiful, readable error reporting when you interact with your application through the command line. Built on top of the Whoops error handler, it renders exceptions with clear stack traces, highlighted code snippets, and helpful context, making CLI failures far easier to diagnose.

Widely known as the error reporter bundled with Laravel, Collision also supports Symfony, PHPUnit, Pest, Laravel Zero, and other frameworks. It installs as a dev dependency and hooks into console and test output, replacing cryptic default stack dumps with formatted, actionable reports.

What You Get

  • Formatted, syntax-highlighted error output for command-line PHP applications
  • Adapters for Laravel, Symfony, PHPUnit, Pest, and Laravel Zero
  • Clear stack traces with the failing code excerpt inline
  • Solution suggestions for recognized common errors
  • A drop-in dev dependency that requires little to no configuration

Common Use Cases

  • Getting readable error reports from artisan and other console commands
  • Improving PHPUnit and Pest test failure output during development
  • Diagnosing exceptions in CLI tools built with Symfony Console or Laravel Zero

Under The Hood

Architecture - The core lives in src/: a Handler implements the exception-handling contract, a Writer composes the terminal output, Highlighter renders syntax-highlighted source excerpts, ConsoleColor and ArgumentFormatter format details, and Coverage supports test coverage output. Framework integration is isolated under src/Adapters/ (Laravel, Phpunit) and wired through a Provider, while SolutionsRepositories supplies suggested fixes for recognized errors. Whoops provides the underlying exception inspection.

Tech Stack - PHP 8.2+ distributed via Composer, built on filp/whoops and Symfony Console components, with per-framework adapter dependencies pulled in as needed. Ships as a dev-time dependency.

Code Quality - Strong tooling: PHPUnit tests (phpunit.xml.dist), PHPStan at a high level with a baseline (phpstan.neon.dist), and active CI. The codebase is cleanly separated into contracts, adapters, and rendering concerns.

API Design - For most users there is no API to learn — installing the dev package auto-registers the handler in Laravel/Pest/PHPUnit and errors immediately look better. For custom CLI apps, wiring the Symfony adapter is a small, well-documented step, keeping the learning curve minimal.

Used by 18 apps in this directory

PHP
82%
Other

Akaunting

Invoicing Finance

10,149

Open-source online accounting for small businesses and freelancers — invoices, expenses, and reporting without monthly fees or vendor lock-in.

View details
98
Repo Health
73
Technical
63
Dependency
Built with
PHP 82%
Blade 13%
Updated 1 weeks ago
PHP
73%
MIT

Bagisto

Analytics · Ecommerce

28,186

Open-source Laravel eCommerce platform for building multi-vendor marketplaces, B2B stores, headless commerce, and AI-powered storefronts.

View details
93
Repo Health
75
Technical
67
Dependency
Built with
PHP 73%
Blade 21%
Updated 2 weeks ago
PHP
81%
Apache 2.0

Coolify

Devops · Hosting Control Panel

62,328

Open-source self-hosted PaaS — deploy apps, databases and 280+ services on your own servers with no vendor lock-in

View details
92
Repo Health
86
Technical
70
Dependency
Built with
PHP 81%
Blade 16%
Updated 1 weeks ago
PHP
48%
AGPL 3.0

Crater

Invoicing Finance

8,349

Open source invoicing and billing platform for freelancers and small businesses — create estimates, track expenses, accept Stripe payments, and run recurring invoices from your own server.

View details
54
Repo Health
68
Technical
68
Dependency
Built with
PHP 48%
Vue 40%
Updated 2 years ago
PHP
82%
MIT

Databasement

Databases · Developer Tools · Devops

2,468

Self-hosted database backup manager with a web UI for scheduling, encrypting, and restoring MySQL, PostgreSQL, MongoDB, SQL Server, SQLite, Firebird, and Redis to S3, SFTP, Samba, or local storage.

View details
82
Repo Health
77
Technical
69
Dependency
Built with
PHP 82%
Blade 16%
Updated 1 weeks ago
Vue
54%
GPL 3.0

Financial Freedom

Invoicing Finance

2,927

Own your financial data with a self-hosted, privacy-first budgeting app that replaces Mint and YNAB.

View details
63
Repo Health
67
Technical
74
Dependency
Built with
Vue 54%
PHP 44%
Updated 2 weeks ago
JavaScript
69%
AGPL 3.0

Fleetbase

Logistics

3,940

Modular open-source logistics and supply chain operating system

View details
93
Repo Health
75
Technical
68
Dependency
Built with
JavaScript 69%
PHP 11%
Updated 1 weeks ago
PHP
58%
Other

Hi.Events

Ecommerce · Scheduling

4,037

Self-hosted event ticketing platform that keeps your attendee data, brand, and revenue completely under your control.

View details
88
Repo Health
84
Technical
66
Dependency
Built with
PHP 58%
TypeScript 36%
Updated 2 weeks ago
PHP
85%
Other

Invoice Ninja

Invoicing Finance · Project Management

10,123

Self-hostable invoicing, time-tracking, and multi-gateway payment platform for freelancers and small businesses, with built-in e-invoicing compliance for EU and global standards.

View details
97
Repo Health
83
Technical
62
Dependency
Built with
PHP 85%
Updated 2 weeks ago

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers