laravel/pint
Laravel Pint is an opinionated PHP code style fixer for minimalists. Built on PHP-CS-Fixer, it makes it easy to keep your codebase clean and consistent with Laravel’s preferred formatting, for projects of any size.
--parallel) and incremental formatting (--dirty) optimize performance for monorepos or large projects.Adopt if:
--diff, --with-exit-status for fail-on-change).Look elsewhere if:
prettier or black).php-cbf).php-cs-fixer directly.*"Laravel Pint is a zero-configuration PHP formatter that automates code styling—saving our team hours per week in manual formatting and reducing merge conflicts by 40% in pilot tests. By standardizing our codebase, we’ll improve:
*"Pint replaces our ad-hoc PHP-CS-Fixer setups with a single, maintained tool that:
pre-commit) and CI (e.g., fail builds on formatting errors).--parallel) handles large codebases efficiently.
Migration path:composer.json (dev dependency).pint --test to preview changes.--diff to see changes).*"Pint is like prettier for PHP—it just works. No more:
php-cs-fixer again…’
Key perks:pint auto-formats your code to Laravel’s standards.--diff shows changes, --with-exit-status fails builds on errors.composer require laravel/pint --dev
./vendor/bin/pint
It’ll format your code without asking questions. Want to customize? The Laravel preset is extendable."*
How can I help you explore Laravel packages today?