Collision

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

Library
Composer
vv8.9.5
4,663 stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
52 /100 Fair
Development Activity 48
Maintenance 4
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
51%
MIT

Krayin CRM

CRM · Ecommerce

24,049

Free, open-source Laravel & Vue.js CRM for SMEs and enterprises to manage the complete customer lifecycle.

View details
90
Repo Health
68
Technical
67
Dependency
Built with
PHP 51%
Blade 41%
Updated 1 weeks ago
PHP
65%
AGPL 3.0

LinkStack

Marketing

3,914

Self-hosted, privacy-focused Linktree alternative with themes, analytics, and a drag-and-drop admin panel.

View details
74
Repo Health
56
Technical
68
Dependency
Built with
PHP 65%
Blade 35%
Updated 1 weeks ago
Vue
49%
MIT

Mixpost

Marketing · Social Media

3,854

Self-host your own social media scheduler and publish to 11 platforms without subscriptions or data lock-in.

View details
50
Repo Health
64
Technical
71
Dependency
Built with
Vue 49%
PHP 44%
Updated 7 months ago
PHP
62%
Other

OpnForm

Forms Surveys · Marketing

3,865

Build unlimited, embeddable forms with no code — powered by AI, logic rules, and real-time analytics

View details
91
Repo Health
75
Technical
65
Dependency
Built with
PHP 62%
Vue 28%
Updated 6 days ago
PHP
70%
AGPL 3.0

Pixelfed

Social Media

7,129

A decentralized, self-hosted photo sharing platform built on ActivityPub for the open Fediverse.

View details
94
Repo Health
68
Technical
66
Dependency
Built with
PHP 70%
Vue 21%
Updated 6 days ago
PHP
76%
MIT

SendPortal

Marketing

2,180

Self-hosted email marketing with full data control, multi-workspace isolation, and seamless integration with Amazon SES, SendGrid, Mailgun, and more

View details
65
Repo Health
59
Technical
71
Dependency
Built with
PHP 76%
Blade 24%
Updated 1 weeks ago
PHP
47%
AGPL 3.0

solidtime

Invoicing Finance · Productivity

9,027

Modern open-source time tracker for freelancers and agencies with invoicing, multi-org support, and Toggl/Clockify migration built in.

View details
84
Repo Health
81
Technical
67
Dependency
Built with
PHP 47%
TypeScript 28%
Vue 22%
Updated 1 weeks ago
PHP
63%
AGPL 3.0

Vanguard Backup

Devops

37

Self-hosted backup automation for Ubuntu and Debian servers with S3 storage, SSH-based file and database backup, and multi-channel notifications.

View details
34
Repo Health
80
Technical
69
Dependency
Built with
PHP 63%
Blade 36%
Updated 11 months ago
PHP
71%
MIT

Yaffa

Invoicing Finance

112

Self-hosted personal finance app for long-term financial planning with AI-powered transaction parsing and investment tracking.

View details
80
Repo Health
78
Technical
67
Dependency
Built with
PHP 71%
Vue 24%
Updated 6 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