jacobjoergensen/laravel-fmt
| Install | |
|---|---|
composer require jacobjoergensen/laravel-fmt |
|
| Latest Version: | 0.8.0 |
| PHP: | >=8.3 |
| License: | MIT |
| Last Updated: | Nov 7, 2026 |
| Links: | GitHub · Packagist |
Laravel Fmt
Laravel Fmt formats PHP, Blade, and Livewire 4, with first-class Tailwind class sorting. It also formats HTML, CSS, Markdown, JSON, YAML, and XML.
[!WARNING] Status: beta. Not recommended for production code yet. Expect rough edges, and please report issues.
Why Laravel Fmt?
Blade, Livewire 4 single-file components, and Tailwind class sorting in one binary. No Node, no Prettier plugin. Drop it in next to your pint.json, .php-cs-fixer.php or mago.toml and it adopts the formatting settings it understands.
Get Started
composer require jacobjoergensen/laravel-fmt --dev
Format your project:
vendor/bin/laravel-fmt
With no arguments it walks the project. Pass paths to narrow it down, or --check to report what would change without writing:
vendor/bin/laravel-fmt app/Models resources/views
vendor/bin/laravel-fmt --check
Documentation
Find the full documentation at laravel-fmt.com.
Contributing
See CONTRIBUTING.md for filing bugs and submitting PRs.
License
MIT. See LICENSE.
Related Packages
Format Blade templates and Livewire SFCs with Pint, Tailwind class sorting, and...
Advanced datatables using Laravel, Livewire, Tailwind CSS and Alpine JS
Advanced datatables using Laravel, Livewire, Tailwind CSS and Alpine JS with fix...
Version History
| Version | Released | PHP | License |
|---|---|---|---|
| 0.8.0 | >=8.3 | MIT | |
| 0.7.0 | >=8.3 | MIT | |
| 0.6.0 | >=8.3 | MIT | |
| 0.5.0 | >=8.3 | MIT | |
| 0.4.0 | >=8.3 | MIT | |
| 0.3.0 | >=8.3 | MIT | |
| 0.2.0 | >=8.3 | MIT | |
| 0.1.0 | >=8.3 | MIT |