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 | 615K | 2 | 1.5 | 53.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 | 7K | 0 | 2.6 | 36.9 | 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 | 116 | 23 | 168K | 2 | 2.0 | 45.3 | NOASSERTION | — | |
| pear/xml_util | 0.78 | PEAR XML_Util provides handy helpers for working with XML: build attribute lists from arrays, generate tags, validate XML names, and more. Lightweight utility methods for creating and checking XML document parts in PHP. | 2 | 2 | 3 | 38K | 0 | 1.4 | 39.0 | — | 6 years ago | |
| lookyman/phpstan-symfony | 0.78 | PHPStan extension for Symfony projects. Improves static analysis with Symfony-specific type inference and container/framework awareness, helping catch bugs earlier and reduce false positives when analyzing services, controllers, and common Symfony patterns. | 42 | — | 5 | — | 0 | 0.2 | — | MIT | 8 years ago | |
| 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,439 | 17,509 | 1,121 | 16M | 47 | 75.1 | 67.5 | BSD-3-Clause | 6 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. | 0 | 37 | — | 637K | — | 0.3 | 55.3 | — | — | |
| 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 | 0.5 | 36.4 | — | 4 years ago | |
| ircmaxell/php-yacc | 0.77 | PHP port of kmyacc: a YACC/LALR(1) parser generator. Feed it a YACC grammar plus a parser template to generate a PHP parser. Useful for building fast parsers for structured languages; generation is resource-heavy, runtime parsing is efficient. | 155 | 156 | 16 | 3K | 2 | 22.0 | 20.3 | NOASSERTION | 1 month ago | |
| goaop/parser-reflection | 0.77 | 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 | 51 | 32K | 3 | 23.2 | 39.9 | MIT | 2 months ago | |
| roave/better-reflection | 0.75 | Enhanced PHP reflection for static analysis: reflect classes without loading them, from PHP code strings or closures, extract AST from functions/methods, and read type declarations and docblocks. Feature-rich but slower than native reflection. | 1,241 | 1,245 | 137 | 326K | 14 | 42.8 | 45.4 | MIT | 1 month ago | |
| sajadsdi/php-reflection | 0.75 | Lightweight wrapper around PHP’s built-in Reflection API. Inspect classes by name or instance and quickly fetch ReflectionClass plus lists of properties, methods, and constants. Simple Reflections helper for common reflection tasks. | 1 | 1 | 0 | 0 | 0 | 0.3 | — | MIT | 2 years ago | |
| brick/reflection | 0.75 | Low-level PHP 8.1+ helpers extending native reflection. ReflectionTools can list all instance methods/properties across inheritance (including private parents), get class hierarchies, and create reflections for any callable with meaningful function names. | 23 | 23 | 3 | 6K | 1 | 21.2 | 37.2 | MIT | 2 months ago | |
| phpdocumentor/reflection | 0.74 | Static PHP code reflection library that parses files without executing them. Builds an object graph of your project’s structure, including DocBlocks. Can analyze code from PHP 5.2 up to your installed version; suitable for reflecting whole files or projects. | 125 | 126 | 61 | 2M | 8 | 34.6 | 67.2 | MIT | 1 week ago |
How can I help you explore Laravel packages today?