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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ircmaxell/php-yacc | 0.82 | PHP port of kmyacc: a YACC/LALR(1) parser generator. Feed it a YACC grammar plus a parser template to generate a PHP parser. Useful for building fast parsers for structured languages; generation is resource-heavy, runtime parsing is efficient. | 155 | 156 | 16 | 3K | 2 | 22.0 | 20.3 | NOASSERTION | 1 month ago | |
| nikic/php-parser | 0.81 | Parse PHP code into an Abstract Syntax Tree (AST) for static analysis, manipulation, and code generation. Supports PHP 5.x to 8.4, handles errors gracefully, and preserves formatting during AST-to-code conversion. Easily traverse, modify, and convert ASTs back to PHP, with JSON serialization support... | 17,441 | 17,509 | 1,122 | 16M | 47 | 75.0 | 67.8 | BSD-3-Clause | 6 months ago | |
| theseer/tokenizer | 0.81 | A PHP tokenizer library for parsing PHP source code into tokens, built on top of ext/tokenizer. Used by tools like PHPUnit to analyze code, inspect syntax, and support static analysis, refactoring, and code quality workflows. | 5,194 | 5,204 | 23 | 13M | 0 | 38.7 | 51.3 | NOASSERTION | 6 months ago | |
| jms/parser-lib | 0.80 | jms/parser-lib is a lightweight PHP parser library by JMS, providing reusable parsing components to build custom parsers quickly. Ideal for interpreting structured text and creating DSLs. Full docs available at jmsyst.com/libs/parser-lib. | 827 | 835 | 15 | 214K | 1 | 5.0 | 33.5 | Apache-2.0 | 4 years ago | |
| doctrine/coding-standard | 0.78 | Doctrine Coding Standard provides a shared PHP_CodeSniffer ruleset used across Doctrine projects. Based heavily on Slevomat, it helps enforce consistent formatting, naming, and best practices in PHP codebases via an easy-to-install package. | 319 | 322 | 49 | 353K | 5 | 19.7 | 48.1 | MIT | 8 months ago | |
| zeptech/annotations | 0.78 | Parses case-insensitive PHPDoc annotations from classes, methods, and properties via Reflection. Exposes annotations as objects with array access, supports defaults/false/null semantics, and includes an AnnotationFactory that caches parsed results by docblock hash for speed. | 65 | 66 | 6 | 6K | 0 | 0.5 | 26.8 | BSD-3-Clause | — | |
| microsoft/tolerant-php-parser | 0.77 | Tolerant PHP parser from Microsoft that builds an AST even from incomplete or syntactically invalid code. Ideal for IDEs, refactoring tools, and static analysis, with error recovery and precise source positions for tokens and nodes. | 895 | 896 | 83 | 195K | 54 | 23.3 | 52.1 | MIT | — | |
| smarty/smarty-lexer | 0.75 | Generates the lexer and parser class files used by the Smarty templating engine. Automatically configured via Composer since Smarty 3.1.35. Supports PHP 7.1–8.2. | 12 | 13 | 8 | 1K | 0 | 6.9 | 26.2 | — | 3 years ago | |
| jakubledl/dissect | 0.74 | — | 223 | 224 | 16 | 27K | 3 | 2.8 | 30.9 | NOASSERTION | — |
How can I help you explore Laravel packages today?