Download the PHP package ganeshk007/migration-generator without Composer
On this page you can find all versions of the php package ganeshk007/migration-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ganeshk007/migration-generator
More information about ganeshk007/migration-generator
Files in ganeshk007/migration-generator
Package migration-generator
Short Description A Laravel package for generate migrations
License MIT
Informations about the package migration-generator
Laravel Migration Generator
A Laravel package to generate migration files from existing database tables โ perfect for legacy projects that don't have migrations. This tool helps developers generate migration files for all tables in one go, improving workflow and making future table changes manageable.
๐ Features
- ๐ Generate migrations from existing tables
- ๐ Support for generating all or selected tables
- โ๏ธ Custom configuration via a published config file
- ๐งผ Clean and Laravel-style migration syntax
- ๐งพ Supports indexing, unique, nullable, and default column properties
๐ฆ Installation
โ๏ธ Configuration (Optional)
To publish the configuration file:
This creates a config file at:
You can configure which tables to include or exclude:
โ๏ธ Usage
Generate migration files using:
Optional Parameters
table: (optional) The name of a specific table to generate a migration for. If not provided, migrations will be generated for all tables (excluding those in config).
Examples:
๐งช Example Output
For a users table, the generated migration will look like:
๐จโ๐ป Contributing
Pull requests are welcome! Here's how to contribute:
- Fork the repository
- Create your feature branch:
git checkout -b feature/your-feature - Commit your changes:
git commit -am 'Add new feature' - Push to the branch:
git push origin feature/your-feature - Open a Pull Request
๐งพ License
This package is open-sourced software licensed under the MIT license.
๐ Author
Ganesh Kumar
๐ https://github.com/Ganeshk007