Token analyzer utility for PHP

v0.1.73 2024-03-08 23:49 UTC


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.

tests Latest Stable Version Daily Downloads Total Downloads Software License

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.


composer require imanghafoori/token-analyzer


The MIT License (MIT). Please see License File for more information.


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 file.


If you discover any security-related issues, please email instead of using the issue tracker.

A man will never fail unless he stops trying.

Albert Einstein