Search by

jacobjoergensen / laravel-fmt

JacobJoergensen

Formatter for PHP, Blade, and Livewire 4 with first-class Tailwind class sorting. It also formats HTML, CSS, Markdown, JSON, YAML, and XML.

Package info

github.com/JacobJoergensen/laravel-fmt

Homepage

Language:Go

pkg:composer/jacobjoergensen/laravel-fmt

Statistics

Installs: 149

Dependents: 0

Suggesters: 0

Stars: 13

Open Issues: 0

0.8.0 2026-11-03 11:05 UTC

This package is auto-updated.

Last update: 2026-11-03 11:15:53 UTC


README

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.