Download the PHP package mileschou/schemarkdown without Composer
On this page you can find all versions of the php package mileschou/schemarkdown. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package schemarkdown
Schemarkdown
The core library for generate Markdown document and Laravel Eloquent Model classes from database schema.
Installation
Use Composer to install:
Usage
Use following command to generate schema documents:
Schema document are stored to docs/schema directory default. Use the --path option to change it.
In the other framework, you must provide config file like Laravel. Use --config option to specify customize configuration.
This tool will load .env before load config. Use the --env option to specify .env path.
Use the --database option to specify connection name in Laravel config to generate the document of one database.
Use the --overwrite option if you want to overwrite the exists document.
Use following command to generate eloquent models:
It's will generate model code into app/Models directory (Laravel 8 default), use the --path option can change output dir. If want to change namespace, use the --namespace option.
In the other framework but using Eloquent ORM library, you must provide config file like laravel project. Use --config option to specify customize configuration.
If only want build one connection, use the --database option to specify.
Use the --overwrite option if you want to overwrite exist code.
Example
Here is example SQL, import MySQL and run following command:
It will generate this Markdown documents.
Troubleshooting
Use -vv option to see info log.
License
The MIT License (MIT). Please see License File for more information.
All versions of schemarkdown with dependencies
doctrine/dbal Version ^2.6
illuminate/console Version ^8 | ^9 | ^10 | ^11
illuminate/database Version ^8 | ^9 | ^10 | ^11
illuminate/events Version ^8 | ^9 | ^10 | ^11
illuminate/support Version ^8 | ^9 | ^10 | ^11
illuminate/view Version ^8 | ^9 | ^10 | ^11
mikey179/vfsstream Version ^1.6.7
mileschou/codegener Version ^2.0