microsoft/tolerant-php-parser
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| jms/parser-lib | 0.82 | 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 | |
| ircmaxell/php-c-parser | 0.82 | Parse C source files into an AST in PHP (PHP 8.4+), including preprocessing resolution. Use a Context to set #define values (ints, strings, identifiers) before parsing. Great for analysis tools, code inspection, and experimentation. | 44 | 44 | 7 | 138 | 4 | 20.5 | 11.1 | MIT | 1 month ago | |
| phpmyadmin/sql-parser | 0.81 | — | 479 | 493 | 115 | 543K | 56 | 39.8 | 67.4 | GPL-2.0 | 7 months ago | |
| goaop/parser-reflection | 0.81 | AST-based Reflection API for PHP: introspect classes, methods, and properties directly from source code without autoloading or executing anything. Built on nikic/php-parser and compatible with native Reflection classes—ideal for static analyzers, code generators, and IDE tooling. | 101 | 101 | 51 | 32K | 3 | 23.2 | 39.9 | MIT | 2 months ago | |
| mossadal/math-parser | 0.81 | Safe PHP math expression parser/evaluator that builds an AST from user formulas. Supports arithmetic, variables, and elementary functions, plus interpreters for evaluation, symbolic differentiation, and LaTeX pretty-printing; customizable lexer/parser with StdMathParser. | 179 | 179 | 41 | 35K | 9 | 5.0 | 35.0 | LGPL-3.0 | — | |
| 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,439 | 17,509 | 1,121 | 16M | 47 | 75.1 | 67.8 | BSD-3-Clause | 5 months ago | |
| mck89/peast | 0.81 | — | 190 | 189 | 24 | 1M | 1 | 29.0 | 62.3 | BSD-3-Clause | 1 month ago | |
| theseer/tokenizer | 0.80 | 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 | 14M | 0 | 38.9 | 51.5 | NOASSERTION | 5 months ago | |
| phpstan/phpdoc-parser | 0.80 | PHPDoc Parser for PHPStan that parses, represents, and modifies PHPDoc blocks as an AST. Supports rich type syntax (unions, generics, shapes, callables, conditional types), constant expressions, and Doctrine annotations, with full API reference for nodes. | 1,528 | 1,526 | 74 | 10M | 8 | 35.0 | 65.0 | MIT | 4 months ago | |
| parsica-php/parsica | 0.80 | Parsica is a PHP parser combinator library for building custom parsers from small reusable pieces. Compose complex grammars with a fluent API, parse strings into structured results, and handle errors cleanly—ideal for DSLs, config formats, and language tooling. | 412 | 412 | 17 | 16K | 11 | 12.5 | 28.1 | MIT | 10 months ago | |
| ircmaxell/php-yacc | 0.79 | 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 | |
| aitradeinc/php-sql-parser | 0.69 | A PHP SQL parser library for analyzing SQL strings. Parse queries into structured data (AST/array) you can inspect, validate, rewrite, or use for tooling like linters, query builders, or migration helpers. Lightweight package for PHP applications. | 0 | 0 | 1 | 0 | 0 | 0.9 | — | MIT | 4 years ago |
How can I help you explore Laravel packages today?