andrewsville/php-token-reflection
PHP library for reflecting and analyzing PHP token streams. Parse source code into tokens and inspect structures like classes, functions, namespaces, and docblocks—useful for static analysis, code generation, and tooling without executing the code.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| mpociot/reflection-docblock | 0.79 | Parse and work with PHP DocBlocks via reflection. mpociot/reflection-docblock extracts summaries, descriptions, tags, params, and return types from classes, methods, and properties, making it easy to generate documentation or build tooling that relies on DocBlock metadata. | 85 | 85 | 4 | 569K | 2 | 21.5 | 62.1 | MIT | 9 years ago | |
| raphhh/trex-reflection | 0.79 | Lightweight PHP reflection helper focused on analyzing types, classes and members with a cleaner API than native Reflection. Great for tooling, static analysis, and code generation tasks—extract signatures, docblocks, visibility, and metadata with minimal boilerplate. | 14 | 14 | 3 | 6K | 0 | 22.6 | 42.7 | MIT | 5 years ago | |
| michelf/php-smartypants | 0.79 | PHP port of John Gruber’s SmartyPants: converts plain ASCII punctuation into typographically correct “smart” quotes, dashes, and ellipses. Useful for cleaning up HTML output from Markdown or other text sources, with configurable transformation options. | 111 | 115 | 23 | 158K | 2 | 2.0 | 44.9 | NOASSERTION | — | |
| nikic/php-parser | 0.78 | 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 | |
| illuminate/reflection | 0.78 | Illuminate Reflection provides lightweight helpers around PHP’s Reflection API, used by Laravel to inspect classes, methods, and parameters. It supports resolving type information and attributes to power features like container autowiring, routing, and validation. | 36 | 36 | 2 | 541K | 0 | 0.3 | 55.3 | MIT | — | |
| phpdocumentor/reflection | 0.78 | PHPDoc reflection library used by phpDocumentor to parse docblocks and reflect types, namespaces, and symbols from PHP code. Helps tools extract documentation and metadata without executing code, powering static analysis and doc generation workflows. | 125 | 126 | 59 | 2M | 11 | 34.5 | 69.0 | MIT | 4 months ago | |
| roave/better-reflection | 0.78 | Reflection library enhancing PHP’s built-in API with advanced features like AST extraction, type declarations, and non-loaded class reflection. Ideal for static analysis tools but not for runtime performance-critical tasks. Supports PHP 7+ and provides deeper type metadata than native reflection. | 1,237 | 1,241 | 138 | 230K | 14 | 44.0 | 43.1 | MIT | 1 day 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 | |
| ircmaxell/php-yacc | 0.77 | PHP port of kmyacc: a YACC/LALR(1) parser generator that takes a YACC grammar (plus a parser template) and generates a PHP parser. Useful for building fast parsers for structured/unstructured languages; generation is resource-heavy, parsing is fast. | 155 | 156 | 16 | 3K | 2 | 23.9 | 21.8 | NOASSERTION | 5 years ago |
How can I help you explore Laravel packages today?