nikic/php-parser
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...
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| spatie/php-structure-discoverer | 0.85 | Automatically discover classes, interfaces, traits, and other PHP structures in a codebase. Scans files, resolves namespaces, and returns a structured overview you can use for tooling, analysis, or building package features without manual registration. | 178 | 179 | 17 | 2M | 1 | 28.7 | 65.0 | MIT | 1 month ago | |
| yooper/php-text-analysis | 0.84 | PHP Text Analysis provides Information Retrieval and NLP tools in PHP: tokenization, normalization, stemming, frequency and n-gram analysis, document comparison, sentiment and classification, collocations (PMI), lexical diversity, corpus analysis, and summarization. | 531 | 539 | 91 | 7K | 8 | 36.6 | 21.4 | MIT | 1 year ago | |
| microsoft/tolerant-php-parser | 0.84 | 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 | 82 | 161K | 54 | 23.2 | 51.0 | MIT | — | |
| sabberworm/php-css-parser | 0.83 | Parse and manipulate CSS in PHP with a fast, flexible parser. Convert CSS into an object model, inspect and edit rules, selectors, and declarations, then render back to CSS. Useful for minifying, rewriting assets, or building CSS tooling. | 1,822 | 1,833 | 151 | 6M | 135 | 61.1 | 83.8 | MIT | 1 month ago | |
| phpowermove/docblock | 0.82 | Lightweight PHP docblock parser and helper utilities. Extract tags, types, descriptions, and annotations from PHPDoc comments with a simple API—useful for reflection, code generation, static analysis tooling, and custom frameworks needing reliable docblock metadata. | 25 | — | 6 | — | 0 | 20.3 | — | MIT | 4 years ago | |
| phpstan/phpdoc-parser | 0.82 | 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,522 | 1,525 | 71 | 9M | 8 | 42.0 | 68.6 | MIT | 2 months ago | |
| khaled.alshamaa/ar-php | 0.79 | Ar-PHP is a PHP library for Arabic language processing: text shaping and normalization, transliteration, date/hijri handling, numbers-to-words, and other Arabic-specific utilities. Useful for Arabic web apps, reports, and localization. | 332 | 331 | 57 | 84K | 8 | 29.5 | 43.1 | NOASSERTION | 1 year ago | |
| imanghafoori/php-token-analyzer | 0.77 | Analyzes PHP code tokens without execution—like reflection but pure PHP. Framework-agnostic, lightweight dependency extracted from Laravel-Microscope. Supports PHP 7.4+ with automated tests for accuracy. Extract class/method details, token types, and structure effortlessly. Ideal for static analysis... | 16 | 16 | 3 | 7K | 0 | 20.5 | 42.4 | — | 4 years ago |
How can I help you explore Laravel packages today?