Download the PHP package n3xt0r/laravel-migration-generator without Composer

On this page you can find all versions of the php package n3xt0r/laravel-migration-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 laravel-migration-generator

laravel-migration-generator [5.x / 6.x / 7.x]

Build Status Latest Stable Version Test Coverage Maintainability License

This Migration-Generator generates Migrations in correct order, when referential integrity is used. So on remigrating them at example on a dev-system, local-system or others its possible to migrate the schema without constraint violations.

Version Compatibility

Laravel/Lumen PHP-Version Migration-Generator Life Support
5.x 7.2 up to 7.4 1.0.10 EOL
6.x 7.2 up to 7.4 1.0.10 EOL
7.x 7.2 up to 8.0 2.0.0 Yes

Requirements

Installation

You can install this package over composer via

composer require n3xt0r/laravel-migration-generator

You`ll not need to add any ServiceProviders to your Configuration on Laravel, this package will register itself on your project.

When you are using Lumen, make sure you have added following line to your app.php:

$app->register(\N3XT0R\MigrationGenerator\Providers\MigrationGeneratorServiceProvider::class);

Executing the Migrator from Artisan

This Migrator can be executed over the command line by using following command:

php artisan migrate:regenerate

It will dump all your tables to the database/migrations folder in correct order. So when you are using referential integrity it will write all migrations so that they could be re-migrated without changing manually the order of the migration-files.

Custom Export

Are you unhappy with the exported migrations? When you should need some customizations on it, it would be possible to customize the export by extending the export-classes over the DI-Container.

There is a Configuration file called "migration-generator", that you could publish and customize. Every Export-Function like "exporting fields" or "exporting indexes" or else has a Definition- and a Mapping-Class.

Definition-Classes

Definition-Classes are classes that define the internal runtime export-format. They are used to generate the Schema-Results to a universal format, so that you or anyone else could extend it.

Mapping-Classes

Mapping Classes are classes that converts internal universal format to executable php-code inside the migration-classes.


All versions of laravel-migration-generator with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2.5|^8.0
ext-pdo_mysql Version *
doctrine/dbal Version ^2.10
laravel/framework Version ^7.30
marcj/topsort Version ^1.1
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 n3xt0r/laravel-migration-generator contains the following files

Loading the files please wait ....