Download the PHP package daniel-werner/laravel-schemacrawler without Composer

On this page you can find all versions of the php package daniel-werner/laravel-schemacrawler. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-schemacrawler

Laravel SchemaCrawler

Latest Version on Packagist Build Status Quality Score Total Downloads

This package is a wrapper for the SchemaCrawler. It allows you to generate ER diagram right from the database. It is capable of creating database diagram from the default schema with zero configuration, but it also offers configuration options for more advanced usage.

Requirements

This package ships with the built in SchemaCrawler, and it requires installed java version 8 and Graphviz.

MacOS users can install Graphviz via HomeBrew:

Homestead or Ubuntu users can install it via package manager:

Installation

You can install the package via composer:

Usage

You can generate the diagram using the console command or accessing the /schema url.

Console command

Running this command will generate a pdf version of the default configured database, the schema.pdf will be placed in the storage/app/ directory.

The possible configuration options are the following:

The following commands are available:

brief Shows basic schema information, for tables, views and routines, columns, primary keys, and foreign keys

count Shows counts of rows in the tables

details Shows maximum possible detail of the schema, including privileges, and details of privileges, triggers, and check constraints

dump Shows data from all rows in the tables

lint Find lints (non-adherence to coding standards and conventions) in the database schema

list Shows a list of schema objects

quickdump Shows data from all rows in the tables, but row order is not guaranteed - this can be used with a minimum info-level for speed

schema Shows the commonly needed detail of the schema, including details of tables, views and routines, columns, primary keys, indexes, foreign keys, and triggers

Url usage

By default the package registers the /schema route in your application. Visiting this url the package will generate a pdf version of the default database.

The default configuration can be overwritten with the following query parameters (e.g. /schema?output_file="database.pdf"):

output_file The name of the generated file

output_format The output file type, possible values: pdf, png, svg, html

connection The connection name to use for diagram generation

info_level Info level for SchemaCrawler, possible values are: detailed, maximum, minimum, standard, unknown

command - See the available commands above

Configuration

The default values for the above detailed configuration options are set up in the package's config file. If you'd like to change these default values, publish the config file with the following command:

The above command will publish the laravel-schemacrawler.php file to your application's config directory.

Example output

This is the database schema of my pet projects Tracy.

Testing

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.


All versions of laravel-schemacrawler with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1
symfony/process Version ^4.1|^5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package daniel-werner/laravel-schemacrawler contains the following files

Loading the files please wait ....