# Php Code Analyzer

#### 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](https://github.com/imanghafoori1/php_token_analyzer/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/imanghafoori1/php_token_analyzer/actions/workflows/tests.yml)
[![Latest Stable Version](https://poser.pugx.org/imanghafoori/php-token-analyzer/v/stable)](https://packagist.org/packages/imanghafoori/php_token_analyzer)
[![Daily Downloads](https://poser.pugx.org/imanghafoori/php-token-analyzer/d/daily)](https://packagist.org/packages/imanghafoori/php_token_analyzer)
[![Total Downloads](https://poser.pugx.org/imanghafoori/php-token-analyzer/downloads)](https://packagist.org/packages/imanghafoori/php_token_analyzer)
[![Software License](https://img.shields.io/badge/license-MIT-blue.svg?style=round-square)](LICENSE.md)

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
```

<a name="license"></a>


## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.


<a name="contributing"></a>

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

<a name="security"></a>
#### 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
```
