项目作者: AzarguNazari

项目描述 :
Give me PHP code, I will render its UML diagram for you.
高级语言: JavaScript
项目地址: git://github.com/AzarguNazari/PHP-To-UML.git
创建时间: 2019-04-26T00:41:57Z
项目社区:https://github.com/AzarguNazari/PHP-To-UML

开源协议:

下载


PHP to UML Generator

A powerful tool that automatically generates UML class diagrams from PHP source code. This tool helps developers visualize their PHP codebase structure through interactive UML diagrams.

🌟 Features

  • Easy File Upload: Simple interface to upload PHP files
  • Interactive UML Diagrams: Pan, zoom, and interact with generated diagrams
  • Export Capability: Download generated UML diagrams as PNG images
  • Multiple File Support: Upload and analyze multiple PHP files simultaneously
  • Real-time Generation: Instant UML diagram generation
  • Interactive Canvas: Easy navigation and manipulation of the generated diagram

🚀 Quick Start

Prerequisites

  • PHP 5.0 or higher
  • Web server (Apache/Nginx)
  • Modern web browser

Installation

  1. # Clone the repository
  2. git clone https://github.com/AzarguNazari/PHP-To-UML.git
  3. # Navigate to project directory
  4. cd PHP-To-UML
  5. # Start the containers
  6. docker-compose up -d
  7. # Access the application at
  8. http://localhost

Manual Installation

  1. Clone the repository:
    1. git clone https://github.com/AzarguNazari/PHP-To-UML.git
  2. Copy the files to your web server directory:
    1. cp -r PHP-To-UML/* /var/www/html/
  3. Access through your web browser at http://localhost

📖 How to Use

  1. Access the Tool

    • Open your web browser and navigate to the application URL
  2. Upload PHP Files

    • Click on the upload button
    • Select one or multiple PHP files containing your classes
    • Click “Upload” to generate the UML diagram
  3. Interact with the Diagram

    • Use mouse wheel to zoom in/out
    • Click and drag to pan around the diagram
    • Click the download button to save the diagram as PNG

🎯 Example Usage

The repository includes example PHP files that you can use to test the tool:

Process Flow

  1. Upload Page
    The uploading files page

  2. Generation Process
    Generating

  3. Final Result
    Generated UML Diagram

🛠️ Technical Details

  • Built with PHP 5.0
  • Uses HTML5 Canvas for diagram rendering
  • Implements object-oriented design principles
  • Supports standard UML class diagram notation

🤝 Contributing

Contributions are welcome! Feel free to:

  1. Fork the repository
  2. Create a feature branch
  3. Submit a pull request

📝 License

This project is open source and available under the MIT License.

🔍 Support

If you encounter any issues or have questions, please open an issue on GitHub.