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
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| imanghafoori/php-token-analyzer | 0.79 | 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 | 4 | 7K | 0 | 0.6 | 36.1 | — | 4 years ago | |
| 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 | 723K | 2 | 1.5 | 54.1 | MIT | 10 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 | 37.0 | MIT | 6 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. | 112 | 116 | 23 | 168K | 2 | 2.1 | 45.2 | NOASSERTION | — | |
| 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 | 41 | 5 | 67 | 0 | 1.2 | 4.0 | MIT | 8 years 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. | 37 | 37 | 2 | 778K | 0 | 0.3 | 55.3 | MIT | — | |
| 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 | 29K | 3 | 20.9 | 38.6 | MIT | 3 months ago | |
| sajadsdi/php-reflection | 0.76 | 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 | |
| phpstan/phpstan-deprecation-rules | 0.76 | — | 458 | 463 | 25 | 3M | 17 | 25.7 | 66.4 | MIT | 5 months ago | |
| phpstan/phpstan-webmozart-assert | 0.75 | PHPStan extension for webmozart/assert that teaches PHPStan how Assert::* calls narrow types. Supports many assertions (including nullOr*/all*) so values become non-null, specific scalars, instances, arrays, etc. after validation, improving static analysis accuracy. | 184 | 184 | 32 | 647K | 6 | 12.8 | 51.3 | MIT | 1 year ago | |
| php-stubs/wordpress-stubs | 0.75 | WordPress core stubs for static analysis and IDE autocompletion (functions, classes, interfaces; no globals). Generated from johnpbloch/wordpress-core. Works with PHPStan (via phpstan-wordpress) and Psalm stubs config. Requires PHP 7.4/8.0. | 201 | 203 | 25 | 1M | 7 | 30.1 | 62.6 | 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,245 | 1,249 | 137 | 584K | 14 | 40.0 | 47.8 | MIT | 2 months 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 | 24 | 3 | 7K | 1 | 18.7 | 37.8 | MIT | 4 months ago | |
| eliashaeussler/phpstan-config | 0.75 | Opinionated PHPStan configuration presets and extensions by Elias Häußler. Drop-in rules and baseline settings to standardize static analysis across projects, reduce false positives, and improve code quality with minimal setup for common PHP/Laravel workflows. | 2 | 2 | 0 | 21K | 1 | 15.8 | 57.2 | GPL-3.0 | 7 months ago | |
| sirbrillig/phpcs-import-detection | 0.75 | PHPCS sniffs that warn when classes/functions/constants are used without an explicit import or fully-qualified name, and flags unused imports. Helps catch namespace issues during refactors (note: PHP 8 tokenization bug/performance caveats). | 32 | 32 | 7 | 6K | 10 | 8.4 | 34.5 | NOASSERTION | 3 years ago |
How can I help you explore Laravel packages today?