PHPackages                             mrazinshaikh/laravel-migration - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. mrazinshaikh/laravel-migration

ActiveLibrary[Database &amp; ORM](/categories/database)

mrazinshaikh/laravel-migration
==============================

A standalone migration tool using laravel illuminate/database.

1.0.3(1y ago)012MITPHPPHP ^8.2

Since Jun 1Pushed 1y ago1 watchersCompare

[ Source](https://github.com/mrazinshaikh/laravel-migration)[ Packagist](https://packagist.org/packages/mrazinshaikh/laravel-migration)[ RSS](/packages/mrazinshaikh-laravel-migration/feed)WikiDiscussions 1.x Synced today

READMEChangelog (4)Dependencies (6)Versions (6)Used By (0)

Laravel Migrations
------------------

[](#laravel-migrations)

A standalone migration tool using laravel illuminate/database.

 [ ![Packagist](https://camo.githubusercontent.com/328f22cb5c0502930cec43f942cef0ab13089c96b6dce5c8dbd1cc85c1f91a41/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d72617a696e736861696b682f6c61726176656c2d6d6967726174696f6e) ](https://packagist.org/packages/mrazinshaikh/laravel-migration) [ ![StyleCI](https://camo.githubusercontent.com/782c60c5ef568a148d94c965affd340d42c42223cc1087f696a80498e5add5db/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3830363131333634312f736869656c643f6272616e63683d6d61696e) ](https://github.styleci.io/repos/806113641) [ ![PHP Versions Supported](https://camo.githubusercontent.com/e2df0db5111cc996698331f261bf2635d5d982b997163dd61bcd20b2f000f216/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253545382e322d3838393242462e737667) ](https://github.com/mrazinshaikh/laravel-migration) [ ![Latest Stable Version](https://camo.githubusercontent.com/cc19df9e2fdb1ec992ece857aff241e56c86d7ce2366f355859ccd947c03cf20/68747470733a2f2f706f7365722e707567782e6f72672f6d72617a696e736861696b682f6c61726176656c2d6d6967726174696f6e2f76657273696f6e) ](https://packagist.org/packages/mrazinshaikh/laravel-migration) [ ![Total Downloads](https://camo.githubusercontent.com/0b6f1e351e79bd70c1b1c8ba9d483fdc46d7db5ac1050a7a661cec2be338e022/68747470733a2f2f706f7365722e707567782e6f72672f6d72617a696e736861696b682f6c61726176656c2d6d6967726174696f6e2f646f776e6c6f616473) ](https://packagist.org/packages/mrazinshaikh/laravel-migration) [ ![License](https://camo.githubusercontent.com/cfb52dd4e8786e9468baa9a501c090c53367f978b1f8f2d48f3af252386cb874/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d3432386637652e737667) ](https://github.com/mrazinshaikh/laravel-migration/blob/master/LICENSE) [ ![Latest Unstable Version](https://camo.githubusercontent.com/77e5bbff5444ee1d2ca0ab8539e064688742c10fb1b11471b6216f207f447a81/68747470733a2f2f706f7365722e707567782e6f72672f6d72617a696e736861696b682f6c61726176656c2d6d6967726174696f6e2f762f756e737461626c65) ](https://packagist.org/packages/mrazinshaikh/laravel-migration) [ ![composer.lock available](https://camo.githubusercontent.com/945144337560bec74779a0702197630759ea3e410223b06132b12d519c200394/68747470733a2f2f706f7365722e707567782e6f72672f6d72617a696e736861696b682f6c61726176656c2d6d6967726174696f6e2f636f6d706f7365726c6f636b) ](https://packagist.org/packages/mrazinshaikh/laravel-migration)

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
------------

[](#installation)

1. Install the package.

```
composer require mrazinshaikh/laravel-migration
```

2. Publish the configuration file.

```
./vendor/bin/laravel-migration config:publish
```

> Update `config/laravel-migration.php` with your database connection credentials.

3. To list all available commands, run:

```
./vendor/bin/laravel-migration
```

or

```
./vendor/bin/laravel-migration list
```

Available Commands
------------------

[](#available-commands)

### migrate

[](#migrate)

Run the database migrations or roll them back.

```
./vendor/bin/laravel-migration migrate
```

Options:

- `--down`: Rollback migrated migrations.

```
./vendor/bin/laravel-migration migrate --down
```

### migrate:fresh

[](#migratefresh)

Drop all tables (only tables created through migrations) and re-run all migrations.

```
./vendor/bin/laravel-migration migrate:fresh
```

### migrate:install (not required - it will be executed internally on migration.)

[](#migrateinstall-not-required---it-will-be-executed-internally-on-migration)

Install the migrations table.

```
./vendor/bin/laravel-migration migrate:install
```

### make:migration

[](#makemigration)

Create a new migration file.

```
./vendor/bin/laravel-migration make:migration
```

- 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

[](#configpublish)

Publish the configuration file.

```
./vendor/bin/laravel-migration config:publish
```

Options:

- `--force`: Override the currently exposed config file.

### Roadmap

[](#roadmap)

- 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`](https://github.com/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.

###  Health Score

28

—

LowBetter than 57% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

5

Last Release

658d ago

PHP version history (2 changes)1.0.0PHP &gt;=8.3

1.0.3PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/5fb0b44be946aff6cf1d336ff2dbe355ddb158a5e6b3e99ed3911d911c04b183?d=identicon)[mrazinshaikh](/maintainers/mrazinshaikh)

---

Top Contributors

[![mrazinshaikh](https://avatars.githubusercontent.com/u/46933565?v=4)](https://github.com/mrazinshaikh "mrazinshaikh (2 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (1 commits)")

---

Tags

laravel-migrationphp

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/mrazinshaikh-laravel-migration/health.svg)

```
[![Health](https://phpackages.com/badges/mrazinshaikh-laravel-migration/health.svg)](https://phpackages.com/packages/mrazinshaikh-laravel-migration)
```

###  Alternatives

[poing/earmark

Laravel package to generate values in a unique and customizable series.

10712.8k](/packages/poing-earmark)[toponepercent/baum

Baum is an implementation of the Nested Set pattern for Eloquent models.

3151.9k](/packages/toponepercent-baum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
