doctrine/lexer
Doctrine Lexer is a lightweight base library for building lexers used in top-down, recursive descent parsers. It powers tokenization in Doctrine projects like Annotations and ORM (DQL), providing a reusable foundation for custom language parsing.
For executives: "This MIT-licensed package is a battle-tested lexer used by Doctrine in production for ORM and annotations. It eliminates 60-80% of parsing-related development effort, reduces bug risk, and integrates seamlessly with our PHP stack—saving time and resources while ensuring reliability for customer-facing features like custom query languages."
For engineers: "Leverage this well-documented, actively maintained lexer to handle tokenization for your custom DSL or DQL extensions. It’s already integrated into Doctrine’s ecosystem, has a robust test suite, and avoids common parsing pitfalls—free
How can I help you explore Laravel packages today?