stolz/laravel-schema-spy 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

stolz/laravel-schema-spy

最新稳定版本:0.1.2

Composer 安装命令:

composer require stolz/laravel-schema-spy

包简介

Laravel artisan command that uses JAVA schemaSpy tool to generate a graphical representation of a database schema

README 文档

README

Laravel SchemaSpy is a Laravel artisan command that acts as an interface for the program SchemaSpy. With SchemaSpy you can analyze the schema metadata of a database and generate browser readable files with useful information such:

  • Visual ER diagram.
  • Proper table insertion/deletion order for database migrations.

SchemaSpy is much more than that so please check the official site to see the full power of the tool.

Requirements

Before installing the package make sure the following requirements are installed on your system:

  • JAVA >=5.
  • SchemaSpy JAR file:
  • The proper JAVA connector for your database system (i.e: MySQL).
  • The dot command from Graphviz should be accessible via the PATH environment variable.

Graphviz itself is not required, only its dot command is used to generated the output.

Installation

Install via Composer

composer require stolz/laravel-schema-spy --dev

If you are using an old version of Laravel or if you have disabled its package discovery feature, then you have to manually edit config/app.php file and register the service provider under providers key

'providers' => array(
	...
	Stolz\SchemaSpy\ServiceProvider::class,
	...

Usage

php artisan db:spy [connection]

If no connection is provided Laravel's default one will be used. After successfully running the command open the file [output-dir]/index.html with your browser.

Configuration

To configure the package use the following command to copy the configuration file to config/spy.php.

php artisan vendor:publish

All available settings are included inside spy.php and with the provided comments they should be self-explanatory.

Laravel 4

If you are still using Laravel 4 instead of loading Stolz\SchemaSpy\ServiceProvider use Stolz\SchemaSpy\LegacyServiceProvider and manually copy the config file:

cp vendor/stolz/laravel-schema-spy/src/config.php app/config/spy.php

License

MIT License © Stolz

Read the provided LICENSE file for details.

统计信息

  • 总下载量: 21.8k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 45
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 43
  • Watchers: 6
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-05-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固