在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):beyondcode/laravel-er-diagram-generator开源软件地址(OpenSource Url):https://github.com/beyondcode/laravel-er-diagram-generator开源编程语言(OpenSource Language):PHP 100.0%开源软件介绍(OpenSource Introduction):Laravel ER Diagram GeneratorThis package lets you generate entity relation diagrams by inspecting the relationships defined in your model files. It is highly customizable. Behind the scenes, it uses GraphViz to generate the graph.
PrerequisitesThe minimum required PHP version is 7.1.0. RequirementsThis package requires the You can install Graphviz on MacOS via homebrew: brew install graphviz Or, if you are using Homestead: sudo apt-get install graphviz To install Graphviz on Windows, download it from the official website. InstallationYou can install the package via composer: composer require beyondcode/laravel-er-diagram-generator --dev If you are using Laravel 5.5+, the package will automatically register the service provider for you. If you are using Lumen, you will need to add the following to \\ Register Service Providers
$app->register(BeyondCode\ErdGenerator\ErdGeneratorServiceProvider::class); UsageBy default, the package will automatically detect all models in your php artisan vendor:publish --provider=BeyondCode\\ErdGenerator\\ErdGeneratorServiceProvider If you're using Lumen and you want to customize the config, you'll need to copy the config file from the vendor directory: cp ./vendor/beyondcode/laravel-er-diagram-generator/config/config.php config/erd-generator.php Generating DiagramsYou can generate entity relation diagrams using the provided artisan command: php artisan generate:erd This will generate a file called You can also specify a custom filename: php artisan generate:erd output.png Or use one of the other output formats, like SVG: php artisan generate:erd output.svg --format=svg CustomizationPlease take a look at the published ExamplesHere are some examples taken from the Laravel.io codebase. Testingcomposer test ChangelogPlease see CHANGELOG for more information what has changed recently. ContributingPlease see CONTRIBUTING for details. SecurityIf you discover any security related issues, please email [email protected] instead of using the issue tracker. CreditsLicenseThe MIT License (MIT). Please see License File for more information. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论