Collision

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

Library
Composer
vv8.9.5
4,658stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
58/100Fair
Development Activity60
Maintenance16
Community56
Maturity60
Momentum40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation.How we score it →
82/100Excellent
Architecture82
Code Quality84
Innovation74
Learning Curve90

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

Other

Akaunting

Invoicing Finance

10,070

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
Updated yesterday
PHP
72%
MIT

Bagisto

Analytics · Ecommerce

27,983

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
69
Dependency
Built with
PHP72%
Blade22%
Updated today
PHP
79%
Apache 2.0

Coolify

Devops · Hosting Control Panel

60,738

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
72
Dependency
Built with
PHP79%
Blade18%
Updated yesterday
PHP
48%
AGPL 3.0

Crater

Invoicing Finance

8,341

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
69
Dependency
Built with
PHP48%
Vue40%
Updated 2 years ago
PHP
82%
MIT

Databasement

Databases · Devops · Developer Tools

1,974

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
81
Repo Health
77
Technical
69
Dependency
Built with
PHP82%
Blade17%
Updated 4 days ago
Vue
54%
GPL 3.0

Financial Freedom

Invoicing Finance

2,910

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

View details
49
Repo Health
67
Technical
75
Dependency
Built with
Vue54%
PHP44%
Updated 3 months ago
JavaScript
70%
AGPL 3.0

Fleetbase

Logistics

2,510

Modular open-source logistics and supply chain operating system

View details
91
Repo Health
75
Technical
68
Dependency
Built with
JavaScript70%
PHP10%
Updated today
PHP
57%
Other

Hi.Events

Ecommerce · Scheduling

3,985

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

View details
88
Repo Health
84
Technical
67
Dependency
Built with
PHP57%
TypeScript37%
Updated 6 days ago
PHP
85%
Other

Invoice Ninja

Invoicing Finance · Project Management

10,008

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
PHP85%
XSLT10%
Updated 2 days 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

Search