项目作者: AzarguNazari
项目描述 :
Give me PHP code, I will render its UML diagram for you.
高级语言: JavaScript
项目地址: git://github.com/AzarguNazari/PHP-To-UML.git
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
Using Docker (Recommended)
# Clone the repository
git clone https://github.com/AzarguNazari/PHP-To-UML.git
# Navigate to project directory
cd PHP-To-UML
# Start the containers
docker-compose up -d
# Access the application at
http://localhost
Manual Installation
- Clone the repository:
git clone https://github.com/AzarguNazari/PHP-To-UML.git
- Copy the files to your web server directory:
cp -r PHP-To-UML/* /var/www/html/
- Access through your web browser at
http://localhost
📖 How to Use
Access the Tool
- Open your web browser and navigate to the application URL
Upload PHP Files
- Click on the upload button
- Select one or multiple PHP files containing your classes
- Click “Upload” to generate the UML diagram
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
Upload Page

Generation Process

Final Result

🛠️ 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:
- Fork the repository
- Create a feature branch
- 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.