Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>PHP, Blade & Livewire FormatterNew to Visual Studio Code? Get it now.
PHP, Blade & Livewire Formatter

PHP, Blade & Livewire Formatter

Iván Rojas

|
4 installs
| (0) | Free
All-in-one PHP and Blade formatter featuring PSR-12 compliance, Tailwind integration, and smart Livewire 4 autocompletion.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

PHP, Blade & Livewire Formatter

Features

  • ⚡ PSR-12 Compliant: Automatically formats PHP sections according to PSR-12 standards.
  • 🎨 Tailwind CSS Sorting: Sorts Tailwind utility classes cleanly in Blade templates.
  • 🔄 Livewire 4 Support: Smart formatting and syntax awareness for Livewire components.
  • 🛠️ Format on Save: Works seamlessly with VS Code's default editor.formatOnSave.

Recommended VS Code Settings

Add the following to your settings.json to enable automatic formatting on save and optimize the completion experience for Blade and PHP files:

{
  "editor.wordBasedSuggestions": "off",
  "[blade]": {
    "editor.defaultFormatter": "irodev.php-blade-livewire-formatter",
    "editor.formatOnSave": true
  },
  "[php]": {
    "editor.defaultFormatter": "irodev.php-blade-livewire-formatter",
    "editor.formatOnSave": true
  }
}

Issues & Feedback

If you find a bug or have a feature request, please open an issue on GitHub Issues.

License

This project is licensed under the MIT License.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft