The recent release of Laravel 5.2 has many welcome additions and changes, we're really excited by it.

However, one change — the removal of Separate Commands and Handlers — had a big impact on two of our projects; StyleCI and Cachet. A lot of code has been written around this practise.

Rather than rewriting the code, Graham has pulled the old Command Bus code out of Laravel and into a new package; AltThree/Bus.

Aside from being a drop-in replacement for Laravel 5.2, our package also:

It's very easy to get started with our Bus package:

composer require alt-three/bus  

Once Alt Three Bus is installed, you need to replace the original service provider. Open up ./config/app.php and replace Illuminate\Bus\BusServiceProvider with AltThree\Bus\BusServiceProvider.

Share Comment on Twitter