The long awaited hype train is finally over, Laravels latest open source CLI app has been released to the world and we got our hands on it to tell you

Laravel Pint | Laravel News

submited by
Style Pass
2022-06-22 15:00:04

The long awaited hype train is finally over, Laravels latest open source CLI app has been released to the world and we got our hands on it to tell you all about it. Introducing Laravel Pint ...

From the readme "Laravel pint is a zero-dependency PHP code style fixer for minimalists - built on top of PHP-CS-Fixer".

As soon as I read this I got excited, and I mean very excited. In modern PHP we have been going through a phase of honing our craft, making our code stricter and better tested, and making sure we have a consistent code style. This all began back when PHP-FIG was formed and they started to release PSRs, and it been going from strength to strength with frameworks having their own specific published style rules. This package is no different, it will automatically test and fix your code style based off of a preset.

With no configuration, no set up, no thought or effort - my project is instantly assessed for PSR-12 styling and automatically fixed. Absolutely magical. Keeping your code clean and consistent sometimes takes effort or thought on how to get this set up - which rules you need to implement. Or with PHP CS Fixer you had to create a config file, then go through and create a finder to add rules to a PHP file in an array. Things got messy quickly right?

Leave a Comment