ircmaxell/php-c-parser
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| jms/parser-lib | 0.83 | 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 | 834 | 15 | 190K | 1 | 5.0 | 32.6 | Apache-2.0 | 4 years ago | |
| mossadal/math-parser | 0.83 | 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 | 43K | 9 | 5.0 | 36.2 | LGPL-3.0 | — | |
| devanoxltd/php-html-parser | 0.82 | Lightweight PHP HTML parser with jQuery-style CSS selectors. Load HTML from strings or files, handle imperfect markup, and traverse nodes (attributes, innerHtml, siblings). Ideal for quick web scraping and DOM extraction in PHP 7.2–7.4. | 0 | 0 | 0 | 24 | 0 | 2.5 | 19.6 | MIT | 11 months ago | |
| microsoft/tolerant-php-parser | 0.82 | 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 | 85 | 187K | 54 | 23.3 | 51.8 | MIT | — | |
| helmich/typo3-typoscript-parser | 0.81 | — | 36 | 36 | 11 | 133K | 8 | 7.3 | 51.3 | — | 1 year ago | |
| kekos/multipart-form-data-parser | 0.81 | Parse multipart/form-data bodies in PHP, including raw HTTP input. Useful for handling file uploads and form fields when your environment doesn’t populate $_FILES/$_POST (e.g., non-standard servers, PUT/PATCH requests). | 1 | 1 | 1 | 12K | 0 | 0.0 | 51.9 | — | — | |
| phpunit/php-token-stream | 0.81 | phpunit/php-token-stream is a small PHP library for tokenizing and streaming PHP source code tokens, commonly used by PHPUnit and related tools for parsing, reflection-like inspection, and test-related code analysis. | 6,384 | 6,392 | 58 | 2M | 0 | 26.7 | 33.5 | NOASSERTION | — | |
| goaop/dissect | 0.81 | — | 2 | 3 | 1 | 7K | 0 | 14.0 | 54.0 | MIT | 4 months ago | |
| devtrw/parse-bundle | 0.81 | — | 1 | 2 | 0 | 0 | 0 | 0.0 | — | — | — | |
| mck89/peast | 0.80 | — | 194 | 190 | 26 | 1M | 1 | 30.9 | 62.2 | BSD-3-Clause | 2 weeks ago | |
| akeneo-labs/spreadsheet-parser | 0.80 | Lightweight spreadsheet reader focused on low memory usage, even for large files. Parses XLSX and CSV, exposes workbook/worksheet APIs, and provides row iterators for streaming data extraction with configurable CSV options (encoding, delimiter, enclosure, etc.). | 145 | 147 | 49 | 4K | 13 | 7.6 | 25.7 | NOASSERTION | 7 years ago | |
| aitradeinc/php-sql-parser | 0.80 | 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 | |
| goaop/parser-reflection | 0.80 | 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 | 50 | 25K | 1 | 18.7 | 36.7 | MIT | 4 months ago | |
| kzykhys/ciconia | 0.79 | Ciconia is a flexible CommonMark/Markdown parser for PHP, converting Markdown to HTML with support for GitHub-flavored syntax and extensions. Designed to be customizable, it fits well in apps needing reliable Markdown rendering and control over output. | 350 | 353 | 28 | 156 | 15 | 10.9 | 8.5 | MIT | 12 years ago | |
| phpmyadmin/sql-parser | 0.79 | — | 484 | 497 | 119 | 643K | 57 | 37.1 | 68.2 | GPL-2.0 | 9 months ago | |
| coderockr/parse | 0.79 | PHP package for parsing and extracting data from strings and text sources with a simple API. Useful for building lightweight parsers, reading structured patterns, and turning raw input into usable values in Laravel or any PHP project. | 0 | 4 | — | 0 | — | 0.0 | — | — | — | |
| nikic/php-parser | 0.79 | 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,450 | 17,523 | 1,131 | 17M | 49 | 84.5 | 74.6 | BSD-3-Clause | 1 month ago | |
| ircmaxell/php-yacc | 0.78 | PHP port of kmyacc: a YACC/LALR(1) parser generator. Feed it a YACC grammar plus a parser template to generate fast PHP parsers. Useful for building language/DSL parsers; generation is resource-heavy, but produced parsers run efficiently. | 155 | 156 | 15 | 3K | 2 | 18.9 | 20.7 | NOASSERTION | 3 months ago | |
| parsica-php/parsica | 0.74 | 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. | 413 | 413 | 18 | 11K | 11 | 10.6 | 25.8 | MIT | 1 year ago |
How can I help you explore Laravel packages today?