phug/formatter
A formatting extension for Phug, the PHP Pug template engine. It pretty-prints and normalizes Pug source with configurable options, helping keep templates readable and consistent in Laravel and PHP projects.
phug/formatter is the output-generation stage of the Phug template engine: it takes the AST built by phug/parser and turns it into final HTML or PHP code. It sits between parsing and rendering, so the same tree can be emitted for production or pretty-printed for debugging.
The component is framework-agnostic and extensible — custom formatters and extensions can hook into the formatting process, while configuration options control indentation and pretty-print output.
How can I help you explore Laravel packages today?