phug/lexer
A fast, extensible PHP lexer for Pug (Jade) templates and the Phug ecosystem. It converts template source into structured tokens for parsing, supporting indentation, tags, attributes, interpolation, code, and comments with configurable scanners.
phug/lexer is a PHP lexer for Pug templates in the Phug ecosystem. It converts template source into a token stream—handling indentation, tags, attributes, text, and interpolation—so downstream parsers can build an AST.
How can I help you explore Laravel packages today?