Laravel Cloud is here! Zero-config managed infrastructure for Laravel apps. Deploy now.

Collision

nunomaduro/collision image

Collision stats

Downloads
150.2M
Stars
4,349
Open Issues
8
Forks
153

View on GitHub →

Cli error handling for console/command-line PHP applications.

Collision Package Summary

Collision is a PHP package designed to enhance error reporting in command-line applications. Developed by Nuno Maduro, this package is seamlessly integrated by default in Laravel and is built upon the robust Whoops error handler framework.

Key Features:

  • Enhanced Error Reporting: Offers detailed and beautifully formatted error messages that improve the debugging process in CLI environments.
  • Framework Compatibility: Supports a variety of frameworks including Laravel, Symfony, PHPUnit, and Pest, ensuring broad usability across different PHP projects.
  • Requires PHP 8.1+: Utilizes the latest PHP features for optimal performance and reliability.

Installation:

Collision can be easily installed via Composer as a development dependency to keep your production environment clean. Use the following command:

composer require nunomaduro/collision --dev

Usage:

Once installed, Collision automatically integrates with your Laravel project, providing an improved error handling experience right out of the box for your command-line applications.

For developers looking to streamline their CLI debugging processes, Collision offers a powerful, user-friendly solution that not only simplifies error handling but also beautifies it, making troubleshooting a less daunting task.

nunomaduro photo

Software engineer at @laravel — working on Laravel, Forge, and Vapor. Created @pestphp, @laravel-zero, collision, @openai-php, php insights, termwind, etc.

Cube

Laravel Newsletter

Join 40k+ other developers and never miss out on new tips, tutorials, and more.


Nunomaduro Collision Related Articles

PestPHP Released as Open-Source image

PestPHP Released as Open-Source

Read article
Collision PHPUnit Listener With Laravel image

Collision PHPUnit Listener With Laravel

Read article
CodeKudu logo

CodeKudu

Stand-ups, Retrospectives, and 360° Feedback for the entire team. 50% off with code LARAVELNEWS.

CodeKudu
The Certification of Competence for Laravel logo

The Certification of Competence for Laravel

A community-driven, proctored assessment across 4 levels designed to validate real-world Laravel knowledge, from Junior to mastery-level Artisan. Official Vue.js, Official Nuxt, Angular, React, JS certifications also available.

The Certification of Competence for Laravel
Typesense Search logo

Typesense Search

Typesense is an open source, blazing-fast search engine, optimized for helping you build delightful search experiences for your sites and apps. Natively integrated with Laravel Scout.

Typesense Search
Tinkerwell logo

Tinkerwell

The must-have code runner for Laravel developers. Tinker with AI, autocompletion and instant feedback on local and production environments.

Tinkerwell
Kirschbaum logo

Kirschbaum

Providing innovation and stability to ensure your web application succeeds.

Kirschbaum
PhpStorm logo

PhpStorm

The go-to PHP IDE with extensive out-of-the-box support for Laravel and its ecosystem.

PhpStorm