Collision is a new package by Nuno Maduro that provides error handling for command line applications. It’s built on top of the Whoops package and provides adapters for both the Laravel artisan console and PHPUnit.
Once installed, this package will automatically work with Laravel through Laravel 5.5 package auto-discovery. Here’s an example of what Collision might look like with artisan:
Collision supports PHPUnit by adding the following to your project’s
<listeners> <listener class="NunoMaduro\Collision\Adapters\Phpunit\Listener" /> </listeners>
You can also use Collision as a stand-alone error handler for CLI tools. You just need to register the error handler in your code manually:
Check out the official repo for more information on Collision and learn how to start using it with Laravel artisan, PHPUnit, and PHP CLI projects.
Join the weekly newsletter and never miss out on new tips, tutorials, and more.
Bootstrap Laravel 5 Packages with Bootpack
Bootpack is a Laravel 5 package bootstraper by Erik Campobadal that helps you create new Laravel 5 packages with a co…
VivifyScrum v2 released with a new technology stack
Recently, VivifyScrum.com has released the new version of their scrum and kanban tool. The new version has been impro…