PHPackages                             matthiasnoback/php-ast-inspector - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. matthiasnoback/php-ast-inspector

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

matthiasnoback/php-ast-inspector
================================

v0.4.0(3y ago)71180.6k↑30.8%1[3 issues](https://github.com/matthiasnoback/php-ast-inspector/issues)PHPPHP ^8.1

Since Sep 2Pushed 3y ago4 watchersCompare

[ Source](https://github.com/matthiasnoback/php-ast-inspector)[ Packagist](https://packagist.org/packages/matthiasnoback/php-ast-inspector)[ RSS](/packages/matthiasnoback-php-ast-inspector/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (7)Versions (5)Used By (0)

PHP AST Inspector
=================

[](#php-ast-inspector)

This package offers a command-line utility for parsing a PHP script and navigating the resulting Abstract Syntax Tree (AST), showing information about the nodes and highlighting the corresponding part of the original script.

[![Example output](docs/screenshot.png)](docs/screenshot.png)

Installation
------------

[](#installation)

```
composer require --dev matthiasnoback/php-ast-inspector

```

Usage
-----

[](#usage)

Run `ast-inspect` by pointing it at a script that you want to inspect, e.g. if your script is called `file.php`:

```
vendor/bin/ast-inspect inspect file.php

```

Now use the keys (`a`, `s`, `d`, `w`) to navigate the node tree. Quit using `Ctrl + C`.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity45

Moderate usage in the ecosystem

Community12

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Total

4

Last Release

1348d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1193078?v=4)[Matthias Noback](/maintainers/matthiasnoback)[@matthiasnoback](https://github.com/matthiasnoback)

---

Top Contributors

[![matthiasnoback](https://avatars.githubusercontent.com/u/1193078?v=4)](https://github.com/matthiasnoback "matthiasnoback (27 commits)")[![jdreesen](https://avatars.githubusercontent.com/u/424602?v=4)](https://github.com/jdreesen "jdreesen (2 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StyleECS

Type Coverage Yes

### Embed Badge

![Health badge](/badges/matthiasnoback-php-ast-inspector/health.svg)

```
[![Health](https://phpackages.com/badges/matthiasnoback-php-ast-inspector/health.svg)](https://phpackages.com/packages/matthiasnoback-php-ast-inspector)
```

###  Alternatives

[symfony/maker-bundle

Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.

3.4k111.1M568](/packages/symfony-maker-bundle)[roave/backward-compatibility-check

Tool to compare two revisions of a public API to check for BC breaks

5953.3M56](/packages/roave-backward-compatibility-check)[coenjacobs/mozart

Composes all dependencies as a package inside a WordPress plugin

4723.6M20](/packages/coenjacobs-mozart)[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)[php-soap/wsdl

Deals with WSDLs

173.5M12](/packages/php-soap-wsdl)[aeliot/todo-registrar

Register TODOs from source code in issue tracker

153.0k](/packages/aeliot-todo-registrar)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
