blade-formatter

JSON →
library 1.44.4 ·javascript
verified Jun 4, 2026

An opinionated Blade template formatter for Laravel that automatically indents markup inside directives, adds spacing to Blade markers, and supports PHP 8 features (null safe operator, named arguments). It also includes PSR-2 formatting inside directives and automatic Tailwind CSS class sorting. The current stable version is 1.44.4 with regular releases. Key differentiators: dedicated Blade formatter (no official one exists), built-in Tailwind sorting, custom directive support, and an online demo. Ships TypeScript declarations and requires Node >= 14.0.0.