nikic/php-parser
A PHP parser written in PHP that converts PHP 7/8 code into an abstract syntax tree, with tools for dumping, traversing, modifying, and regenerating code, plus name resolution and builders for static analysis and code generation.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| laravie/parser | 0.90 | Laravie Parser is a PHP source-code parsing library for Laravel applications. It offers a simple API for tokenizing and traversing code, inspecting classes, methods, and syntax trees, and integrating static analysis or code-generation tools into your projects. | 230 | — | 27 | — | 0 | 2.1 | — | MIT | 1 year ago |
|
| phpstan/phpdoc-parser | 0.87 | phpstan/phpdoc-parser parses PHPDocs into a typed AST so you can read and modify docblocks programmatically. It handles rich types like unions, generics, array shapes, callables, and conditional types, plus Doctrine annotations. Powers PHPStan. | 1,541 | 1,540 | 79 | 20M | 6 | 42.4 | 71.7 | MIT | 1 week ago | |
| ajthinking/php-file-manipulator | 0.87 | Manipulate PHP files programmatically with a clean, fluent API. Read, modify, and rewrite classes, methods, properties, and namespaces without fragile regex, making code generation and refactoring safe and predictable. | 271 | 271 | 19 | 6 | 2 | 22.4 | 0.6 | MIT | 1 week ago | |
| phpstan/phpstan-php-parser | 0.87 | PHPStan extension for nikic/php-parser that adds precise type inference for AST nodes and visitors, improving static analysis of code that parses, traverses, or manipulates PHP source. | 23 | 23 | 8 | 19K | 1 | 0.3 | 28.3 | — | 4 years ago | |
| symplify/simple-php-doc-parser | 0.86 | Simple PHP Doc Parser by Symplify is a lightweight library for reading PHP docblocks. It extracts comments, tags, and annotations from classes, methods, and properties through a simple API, making PHPDoc data easy to use in static analysis, code generation, and documentation tools. | 0 | 24 | — | 480 | — | 0.0 | 37.1 | — | — | |
| microsoft/tolerant-php-parser | 0.86 | 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 | 84 | 204K | 54 | 23.3 | 52.3 | MIT | — | |
| parsica-php/parsica | 0.85 | 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 | 19 | 20K | 11 | 10.8 | 29.6 | MIT | 1 year ago | |
| thesoftwarefanatics/php-html-parser | 0.85 | A PHP HTML parser for loading, traversing, and manipulating HTML documents. It provides a simple API for extracting elements, attributes, and text, making it useful for scraping, DOM-style processing, and HTML cleanup in PHP applications. | 33 | 33 | 10 | 936 | 4 | 1.8 | 20.8 | MIT | 7 years ago | |
| phpunit/php-token-stream | 0.85 | 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,370 | 6,392 | 58 | 2M | 0 | 26.7 | 33.6 | NOASSERTION | — | |
| nikic/iter | 0.84 | nikic/iter is a small PHP library for working with iterables and generators. It provides lazy, functional-style helpers like map, filter, reduce, and chain to build efficient pipelines over arrays and Traversables without extra memory overhead. | 1,145 | 1,151 | 70 | 185K | 9 | 14.9 | 35.1 | NOASSERTION | 2 years ago | |
| sunra/php-simple-html-dom-parser | 0.84 | A maintained PHP port of Simple HTML DOM for loading and manipulating HTML with jQuery-like CSS selectors. It provides an easy, forgiving API for scraping pages and extracting or editing elements, with Composer support for modern PHP versions. | 1,282 | — | 342 | — | 30 | 27.7 | 18.0 | — | 9 years ago |
|
| sebastian/complexity | 0.84 | Compute code complexity metrics for PHP units (functions, methods, classes). sebastian/complexity provides programmatic analysis useful for static analysis tools, quality gates, and CI reporting; install via Composer for project or dev-only use. | 1,260 | 1,260 | 12 | 23M | 1 | 13.1 | 57.8 | BSD-3-Clause | 9 months ago | |
| adci/full-name-parser | 0.84 | A PHP package for parsing full names into first, middle, last, prefix, and suffix components. It handles common name formats, titles, and suffixes, making it easy to split user-provided names for storage, search, or display in Laravel and other PHP applications. | 29 | 30 | 5 | 17K | 2 | 0.8 | 38.2 | MIT | 7 years ago | |
| yosymfony/parser-utils | 0.84 | A small PHP toolkit for building parsers, providing tokens, token streams, AST nodes, source locations, and syntax errors. It offers reusable utilities for lexers and recursive-descent parsers, and underpins libraries such as yosymfony/toml. | 21 | 21 | 3 | 48K | 0 | 0.2 | 46.1 | MIT | 8 years ago |
How can I help you explore Laravel packages today?