imanghafoori / php-token-analyzer
Token analyzer utility for PHP
Package info
github.com/imanghafoori1/php_token_analyzer
pkg:composer/imanghafoori/php-token-analyzer
Requires
- php: ^7.2|8.0.*|8.1.*|8.2.*|8.3.*
- phpdocumentor/reflection-docblock: 4.*|5.*
Requires (Dev)
- phpunit/phpunit: ^6.0|^7.0|^8.0|^9.0
- symfony/var-dumper: 3.*|4.*|5.*
This package is auto-updated.
Last update: 2026-05-18 20:28:01 UTC
README
Reads and analyzes PHP code, just like PHP reflection but without executing it.
This package is extracted from laravel-microscope package as a framework-agnostic, pure PHP package.
This is a pure PHP, framework-agnostic package which is extracted out of the Laravel-microscope package as a low-level dependency.
The functionality is heavily tested against different versions of PHP both manually and by automated tests.
Installation:
composer require imanghafoori/token-analyzer
License
The MIT License (MIT). Please see License File for more information.
Contributing:
If you find an issue or have a better way to do something, feel free to open an issue or a pull request. If you use PHP-token-analyzer in your open-source project, create a pull request to provide its URL as a sample application in the README.md file.
Security:
If you discover any security-related issues, please email imanghafoori1@gmail.com instead of using the issue tracker.
A man will never fail unless he stops trying.
Albert Einstein