Skip to content

ydah/php-ast-visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP AST Visualizer

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.

Overview

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.

Usage

Currently, this project is not deployed on any server. You can run it locally by following these steps:

  1. Clone the repository

  2. Ensure you have PHP installed with the ast extension enabled. You can install the ast extension using:

    pecl install ast
  3. Run a local PHP server in the project directory:

    php -S localhost:8000 server.php
  4. Open your web browser and navigate to http://localhost:8000

Contributing

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.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Author

https://github.com/ydah

About

A php AST visualizer.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors