qmetrics.net

vscode-blade-formatter

Opinionated Laravel Blade template formatter for VS Code

vscode-blade-formatter screenshot

A Visual Studio Code extension that formats Laravel Blade files with fixed style rules. It can also share formatting behavior with the separate blade-formatter CLI.

Overview

Laravel Blade formatter is a Visual Studio Code extension that applies opinionated formatting to Blade template files. It targets developers working in Laravel projects who want consistent indentation, spacing around template markers, and layout options without leaving the editor.

The formatter indents markup inside Blade directives, adds spacing around template markers, and can format PHP inside directives with PSR-2-style rules. It supports PHP 8 syntax features such as the nullsafe operator and named arguments, and can sort Tailwind CSS classes according to your tailwind.config.js.

Many behaviors are controlled through extension settings or project files. You can store defaults in .bladeformatterrc.json or .bladeformatterrc at the project root, exclude paths with a .bladeignore file using gitignore syntax, and disable formatting for whole files, regions, or single lines via Blade comments.

The same formatting approach is available programmatically through the blade-formatter package that this extension relies on. Optional telemetry sends usage data to Azure Application Insights unless disabled via editor telemetry settings.

Key features

  • Indent markup inside Blade directives
  • Spacing around Blade template markers
  • PHP 8 syntax inside directives
  • PSR-2 formatting inside directives
  • Optional Tailwind class sorting
  • Project .bladeformatterrc configuration
  • .bladeignore exclude patterns
  • Per-file or per-line format disable comments

Use cases

  • Format Laravel Blade views in VS Code
  • Enforce consistent Blade layout in teams
  • Sort Tailwind classes in templates
  • Share formatter settings via project config

Tags

Similar software

Prettier

Opinionated multi-language code formatter

Prettier enforces consistent style by parsing code and reprinting it with fixed rules and line wrapping. It supports many web and data languages.

  • AST-based consistent reprinting
  • Wide language and plugin support
  • Editor and CI integration
JavaScriptDetails →
★ 52.5k⟳ yesterdayMIT

Oxc

Rust-based JavaScript and TypeScript compiler toolkit

Oxc bundles a parser, linter, formatter, transformer, resolver, and minifier for JavaScript and TypeScript. Oxlint and Oxfmt run via npx for everyday lint and format tasks.

  • Oxlint ESLint-compatible linter
  • Oxfmt Prettier-compatible formatter
  • JavaScript and TypeScript parser
RustLinux, macOSDetails →
★ 23.8k⟳ todayMIT

PHP Parser

PHP library for parsing and manipulating PHP ASTs

A PHP package that parses PHP source into an abstract syntax tree for analysis and code transformation. It targets static analysis and programmatic rewriting workflows.

  • PHP 7 and 8 AST parsing
  • Partial parse on invalid code
  • AST dump and pretty-print
PHPDetails →
★ 17.5k⟳ 5 days agoBSD-3-Clause

typescript-eslint

ESLint tooling for linting TypeScript codebases

typescript-eslint connects ESLint to TypeScript syntax and ships parser services plus lint rules. It enables standard and type-aware linting for JavaScript and TypeScript projects.

  • TypeScript parser for ESLint
  • Parser services for other tools
  • Large standard rule catalog
TypeScriptDetails →
★ 16.5k⟳ todayMIT

laravel-ide-helper

Laravel IDE helper and PHPDoc generator package

A Composer package for Laravel apps that builds helper files and PHPDoc so IDEs can autocomplete facades, models, fluent APIs, and container bindings from your project source.

  • Facade PHPDoc via ide-helper:generate
  • Model property docs from database schema
  • PhpStorm meta for container bindings
PHPDetails →
★ 15k⟳ 1 month agoMIT

quicktype

Type and serializer generator from JSON, Schema, and GraphQL

Quicktype infers strongly typed models and serializers from JSON samples, JSON Schema, TypeScript, or GraphQL. Output targets many programming languages via the web app, CLI, or JavaScript API.

  • JSON and JSON Schema inputs
  • GraphQL and TypeScript sources
  • Twenty-five plus target languages
TypeScriptWeb, macOS, Windows, CLIDetails →
★ 13.9k⟳ 2 months agoApache-2.0