New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

jacobjoergensen/laravel-fmt

Formatter for PHP, Blade, and Livewire 4 with first-class Tailwind class sorting. It also formats HTML, CSS, Markdown, JSON, YAML, and XML.
149 13
Install
composer require jacobjoergensen/laravel-fmt
Latest Version:0.8.0
PHP:>=8.3
License:MIT
Last Updated:Nov 7, 2026
Links: GitHub  ·  Packagist
Maintainer: JacobJoergensen

Laravel Fmt

Latest Version Documentation CI License

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

joelstein/blade-formatter

Format Blade templates and Livewire SFCs with Pint, Tailwind class sorting, and...

780 7
renatovdemoura/blade-elements-ui

Laravel Blade components using TALL stack.

810 0
hungnm28/livewire-form

Reusable Blade UI components for Laravel and Livewire applications.

19 0
mediconesystems/livewire-datatables

Advanced datatables using Laravel, Livewire, Tailwind CSS and Alpine JS

762,808 1,221
t-raven/livewire-datatables

Advanced datatables using Laravel, Livewire, Tailwind CSS and Alpine JS with fix...

3,306 0

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