A php AST visualizer. This tool allows you to visualize the Abstract Syntax Tree (AST) of PHP code, making it easier to understand the structure and flow of your PHP scripts.
This project provides a web interface where you can input PHP code, and it will generate a visual representation of the AST using Mermaid.js. The backend is powered by PHP with the ast extension to parse the code.
Currently, this project is not deployed on any server. You can run it locally by following these steps:
-
Clone the repository
-
Ensure you have PHP installed with the
astextension enabled. You can install theastextension using:pecl install ast
-
Run a local PHP server in the project directory:
php -S localhost:8000 server.php
-
Open your web browser and navigate to
http://localhost:8000
If you want to contribute to this project, feel free to fork the repository and submit a pull request. Contributions are welcome, whether it's fixing bugs, improving the UI, or adding new features.
This project is licensed under the MIT License. See the LICENSE file for more details.