Download the PHP package mrazinshaikh/laravel-migration without Composer
On this page you can find all versions of the php package mrazinshaikh/laravel-migration. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mrazinshaikh/laravel-migration
More information about mrazinshaikh/laravel-migration
Files in mrazinshaikh/laravel-migration
Package laravel-migration
Short Description A standalone migration tool using laravel illuminate/database.
License MIT
Informations about the package laravel-migration
Laravel Migrations
A standalone migration tool using laravel illuminate/database.
The Laravel Migrations package is a standalone migration tool designed to bring the powerful and flexible migration capabilities of Laravel's illuminate/database
component to any PHP project. Whether you are building a small application or a large enterprise system, this package allows you to manage your database schema with ease and precision. With features like creating, running, and rolling back migrations, this tool integrates seamlessly into your workflow. The package also provides user-friendly command-line prompts and detailed output, ensuring that database migrations are straightforward and manageable. Perfect for developers who want to leverage Laravel's robust database migration system outside of a full Laravel framework, this package provides the tools you need to keep your database schema in sync with your application's evolving requirements.
Installation
-
Install the package.
- Publish the configuration file.
Update
config/laravel-migration.php
with your database connection credentials.
- To list all available commands, run:
or
Available Commands
migrate
Run the database migrations or roll them back.
Options:
--down
: Rollback migrated migrations.
migrate:fresh
Drop all tables (only tables created through migrations) and re-run all migrations.
migrate:install (not required - it will be executed internally on migration.)
Install the migrations table.
make:migration
Create a new migration file.
- You will be propted for migration name.
- Then propmpt to name the db table will be show, it will try to guess the table name from migration name asked previously, and pre-fill this input, and this input will be blank if not able to guess the table name.
config:publish
Publish the configuration file.
Options:
--force
: Override the currently exposed config file.
Roadmap
-
[x] Make this work in a way so migrations folder exists in end user root directory (customizable in future.)
- expose artisan to vendor/bin folder. rename to migration.
- attempt to use illuminate\database Create migration '\Illuminate\Database\Migrations\MigrationCreator'
-
[ ] Add config:show command, to show parsed config.
-
[ ] Extend migrate command to run specific migration file using --path option.
-
[ ] Install
nunomaduro/termwind
- [ ]
php artisan
available commands list equal distance between command and description message. - [ ] In MigrateCommand
getTerminalWidth
replace with termwind get terminal width instead - [ ] improve output message stylings
- [ ]
- [ ] Implement
wipe
command to read all migration file and drop those tables from db.
All versions of laravel-migration with dependencies
illuminate/database Version ^11.8
illuminate/events Version ^11.8
illuminate/filesystem Version ^11.8
laravel/prompts Version ^0.1.22
illuminate/support Version ^11.8