Important
This repository has been archived, consider using jawira/doctrine-diagram-bundle instead.
📐 Standalone tool to generate MySQL database diagrams.
Database url option (--url) is required. Alternatively you can use DATABASE_URL environment variable.
mysql-draw --url=mysql://user:pass@host/db_name --size=mini --format=png
Download the latest .phar file from releases page https://github.com/jawira/mysql-draw/releases:
wget https://github.com/jawira/mysql-draw/releases/download/v0.1.0/mysql-draw.phar
php mysql-draw.phar --help
Or install globally:
mv mysql-draw.phar /usr/local/bin/mysql-draw
chmod +x /usr/local/bin/mysql-draw
composer require jawira/mysql-draw --dev
vendor/bin/mysql-draw --help
- PHP 7.4 or newer
- mbstring extension
- mysql extension
If you liked this project, ⭐ star it on GitHub.
This library is licensed under the MIT license.
- jawira/doctrine-diagram-bundle
- Symfony Bundle to generate database diagrams.
- jawira/db-draw
- Library to generate database diagrams.
- jawira/plantuml-client
- Convert PlantUML diagrams into images (svg, png, ...).
- more...