Blade Formatter

screenshot of Blade Formatter
laravel
tailwind

An opinionated blade template formatter for Laravel that respects readability

Overview

The blade-formatter is an opinionated blade template formatter for Laravel that aims to provide a formatter for blade templates, as there is no official blade template formatter available. It offers features such as automatic indentation of markup inside directives, automatic spacing for blade templating markers, support for PHP 8 features, PSR-2 support, and automatic Tailwind CSS class sorting.

Features

  • Automatically Indents markup inside directives
  • Automatically add spacing to blade templating markers
  • PHP 8 support (null safe operator, named arguments)
  • PSR-2 support (format inside directives)
  • Automatic Tailwind CSS Class Sorting
  • Custom Directive support
laravel
Laravel

Laravel is a powerful and elegant PHP framework that provides developers with a comprehensive set of tools and features to build robust web applications. It follows the Model-View-Controller (MVC) architectural pattern, offering a clean and organized structure for writing efficient and maintainable code.

tailwind
Tailwind

Tailwind CSS is a utility-first CSS framework that provides pre-defined classes for building responsive and customizable user interfaces.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.