theseer/tokenizer
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| doctrine/lexer | 0.81 | 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. | 11,160 | 11,179 | 61 | 14M | 2 | 50.8 | 50.4 | MIT | 2 years 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,424 | 17,486 | 1,121 | 15M | 46 | 84.7 | 76.0 | BSD-3-Clause | 4 months ago | |
| microsoft/tolerant-php-parser | 0.80 | 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 | — | |
| imanghafoori/php-token-analyzer | 0.78 | 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 | |
| spiral/tokenizer | 0.76 | Fast PHP tokenizer for discovering classes, interfaces, traits, and functions without loading files. Scans directories, parses source code, and builds a registry for runtime reflection, DI containers, and framework bootstrapping—lightweight and cache-friendly. | 17 | 17 | 5 | 336K | 0 | 25.3 | 65.0 | MIT | 6 years ago |
How can I help you explore Laravel packages today?