Prettier Plugin Blade

screenshot of Prettier Plugin Blade
laravel
tailwind

Format your blade template using Prettier

Overview:

This product is a Prettier plugin specifically designed for formatting blade templates in a Laravel project. It provides several features for automatically formatting and organizing code within the blade templates. The plugin supports PHP 8 syntax and follows the PSR-2 coding standard. It also offers the option to automatically sort Tailwind CSS classes based on the configuration in tailwind.config.js.

Features:

  • Automatically indent markup inside directives
  • Automatically add spacing to blade template markers
  • PHP 8 syntax support (null safe operator, named arguments)
  • Compliant to PSR-2 coding standard (PHP code inside directives)
  • Automatically sort Tailwind CSS classes with respect to tailwind.config.js
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.