PHP AST Viewer

December 16, 2025 ยท View on GitHub

The PHP AST Viewer is a tool for viewing the Abstract Syntax Tree of PHP code. By visualizing the structure, it helps developers gain a deeper understanding of the code, thus improving code quality and maintenance efficiency.

image

Getting Started

First, run commands by this sequence for development server:

composer install
pnpm install
pnpm dev

Open http://localhost:3000 with your browser to see the page.

or

pnpm all-in-one # This command runs the above three commands.

Demo video

https://github.com/RightCapitalHQ/php-ast-viewer/assets/43896664/e6dd70c3-5e58-466d-808e-6eaac383d37f