Download the PHP package filippo-toso/migrations-generator without Composer

On this page you can find all versions of the php package filippo-toso/migrations-generator. 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 migrations-generator

Migrations Generator

A Laravel Artisan command to automatically generate migrations from database tables.

Requirements

Installing

Use Composer to install it:

How does it work?

This generator is very simple. It builds the migrations from the database and saves them in the database folder.

By default the generator doesn't create the models of Laravel's tables like jobs, cache, and so on. You can modify this behavior publishing the package resources and editing the config/migrations-generator.php file.

Configuration

You can publish the configuration file with the following command:

The config/migration-generator.php file allows you to:

Just open the file and read the comments :)

Options

The predefined use from command line is:

This command generates the migrations with the current time (plus one second for each table).

If there are existing migrations they will not be overwritten.

You can modify the default behavior using the following parameters:

With the overwrite option the generator will remove the previously generated migrations with the same class name.

You can specify a different connection if you need to.

Workflow

To gain the maximum benefits from this package you should follow this workflow:

You must follow Laravel's guidelines about tables and columns names and also include in your SQL statements all the required foreign keys and indexes.

Known Issues

If you have two (or more) tables inter-related, you will need to manually move the foreign key definitions in a separate migrations that will run after all the tables has been created


All versions of migrations-generator with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1.3
illuminate/support Version >=5.5
laravel/helpers Version ^1.1
doctrine/dbal Version ^2.8
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 filippo-toso/migrations-generator contains the following files

Loading the files please wait ....