Download the PHP package muhammadhammadwaseem/db-mig-generator without Composer

On this page you can find all versions of the php package muhammadhammadwaseem/db-mig-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 db-mig-generator

Laravel DB Migration Generator

Automatically generate Laravel migration files from an existing database schema — with built-in support for ENUM columns and zero manual setup.

🚀 Installation


composer require hammad123/laravel-db-migration-generator
✅ Compatible with Laravel 8, 9, and 10
✅ Supports MySQL, MariaDB
✅ Automatically handles enum columns (converted to string())

⚙️ Usage
Run the Artisan command to generate migrations from your current database:
php artisan hammad:migrate:generate

🔧 Options
Option                       Description
--connection=                Use a specific DB connection from config/database.php
--path=                      Output path for generated migrations

🧠 ENUM Support
You don't need to manually map ENUM types — the package internally handles it.

Example:
status ENUM('active', 'inactive') DEFAULT 'active'

Will be converted to:

$table->string('status')->default('active');

📁 Configuration (Optional)
You can publish the config file to skip tables or customize paths:

php artisan vendor:publish --tag=config

This publishes: config/migration-generator.php

Inside, you can:
Skip specific tables
Change default stub path
Change default migration directory

✍️ Custom Stub
You can publish and customize the stub used for migrations:

php artisan vendor:publish --tag=stubs
This gives you: resources/stubs/migration.stub

You can edit the layout of the generated migration (e.g., indentation, formatting).

✅ Testing (For Contributors)
This package uses Orchestra Testbench to test migrations in a real Laravel environment.

Run tests:

composer install --dev
vendor/bin/phpunit

🤝 Contributing
Pull requests and feature suggestions are welcome!
If you find a bug or want a new feature, open an issue on GitHub.

📄 License
MIT © Hammad

📦 Coming Soon (Optional Features)

Column comments
Foreign key support
Relationships (HasMany, BelongsTo)
Laravel 11 support.

All versions of db-mig-generator with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version ^8.0|^9.0|^10.0
doctrine/dbal Version ^3.6
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 muhammadhammadwaseem/db-mig-generator contains the following files

Loading the files please wait ....