PHPackages                             tomzx/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. tomzx/laravel-migration

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

tomzx/laravel-migration
=======================

A migration service based on Laravel Database package.

v0.2.0(10y ago)5351[3 issues](https://github.com/tomzx/laravel-migration/issues)MITPHPPHP &gt;=5.4.0

Since Nov 18Pushed 10y ago1 watchersCompare

[ Source](https://github.com/tomzx/laravel-migration)[ Packagist](https://packagist.org/packages/tomzx/laravel-migration)[ Docs](https://github.com/tomzx/laravel-migration)[ RSS](/packages/tomzx-laravel-migration/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (7)Versions (3)Used By (0)

Laravel Migration
=================

[](#laravel-migration)

[![License](https://camo.githubusercontent.com/74a0f364c4827d6aa99dd21774f7bd7180696acb8dc285bff16bf55c50bb4e19/68747470733a2f2f706f7365722e707567782e6f72672f746f6d7a782f6c61726176656c2d6d6967726174696f6e2f6c6963656e73652e737667)](https://packagist.org/packages/tomzx/laravel-migration)[![Latest Stable Version](https://camo.githubusercontent.com/ba6bd389367ede225fc11c241af9fa737d0d150d534be56dcebd321bd411040d/68747470733a2f2f706f7365722e707567782e6f72672f746f6d7a782f6c61726176656c2d6d6967726174696f6e2f762f737461626c652e737667)](https://packagist.org/packages/tomzx/laravel-migration)[![Latest Unstable Version](https://camo.githubusercontent.com/ffcd4f737f8c9031065fc3680da2477fc73985935d6ca60c3f226bba3cbca66a/68747470733a2f2f706f7365722e707567782e6f72672f746f6d7a782f6c61726176656c2d6d6967726174696f6e2f762f756e737461626c652e737667)](https://packagist.org/packages/tomzx/laravel-migration)[![Build Status](https://camo.githubusercontent.com/995f6d3acc223689e6716e345ea99da5d5428feb35c124eb3ca6efc41680d36a/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f746f6d7a782f6c61726176656c2d6d6967726174696f6e2e737667)](https://travis-ci.org/tomzx/laravel-migration)[![Code Quality](https://camo.githubusercontent.com/80846331a87ce73f474af38a06c457212b8739fd2f29d1a92cac32bcd076a702/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f746f6d7a782f6c61726176656c2d6d6967726174696f6e2e737667)](https://scrutinizer-ci.com/g/tomzx/laravel-migration/code-structure)[![Code Coverage](https://camo.githubusercontent.com/33c91a8f67340841d324a54833e84e9696a9d77bcbc1a0a0aa52ae93236fcb5d/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f746f6d7a782f6c61726176656c2d6d6967726174696f6e2e737667)](https://scrutinizer-ci.com/g/tomzx/laravel-migration)[![Total Downloads](https://camo.githubusercontent.com/72ac0ae62cfc8e96fc00016d3adec5a9c3c65cf0027207dda9aa35ebc4a49abe/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746f6d7a782f6c61726176656c2d6d6967726174696f6e2e737667)](https://packagist.org/packages/tomzx/laravel-migration)

This is a small package that builds on Laravel's wonderful database package. It extracts the database migration feature in order to use it in any project that may not be built on Laravel.

Note
----

[](#note)

This is currently a proof of concept. There are rough edges (such as the configuration file and migrations folder location). Those should be fixed given enough time and feedback. Feel free to submit a PR if you have a suggestion on how to deal with those!

This project currently uses some from of "hack" by creating some files in the `Illuminate/Foundation` namespace. It is expected you will not use this project within the context of a Laravel application, otherwise conflicts will occur.

Getting Started
---------------

[](#getting-started)

### Laravel 4

[](#laravel-4)

Due to technical constraints, the folder structure in Laravel 4 has to be a certain way (specifically, we need a `database/migrations` path). You can follow Laravel 5 instructions on how to get started, simply make sure that you create the `database/migrations` path (instead of simply `migrations`).

```
your-project
- database
-- database.php
-- database
--- migrations
---- 2015_11_17_215411_some_migration.php
- vendor
-- tomzx
--- LaravelMigration

```

### Laravel 5

[](#laravel-5)

The current implementation looks in the current working directory for a configuration file `database.php` and migration files in the `migrations` directory.

```
your-project
- database
-- database.php
-- migrations
--- 2015_11_17_215411_some_migration.php
- vendor
-- tomzx
--- LaravelMigration

```

To use the tool, you would call `laravel-migration` within the `database` directory in the following way:

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

Thus, the current setup steps are:

1. Create a `database` directory where you will store your `database.php` and `migrations` files
2. Copy `database.php` to your newly created directory and configure it to your needs
3. Create a `migrations` directory in the newly created directory
4. You may now enjoy `laravel-migration`!

License
-------

[](#license)

The code is licensed under the [MIT license](http://choosealicense.com/licenses/mit/). See [LICENSE](LICENSE).

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance8

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

2

Last Release

3827d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/218f6db237e6937c05550d4d6df648f50cd9b26b098fc8c1be3930fe7d5c71e9?d=identicon)[tomzx](/maintainers/tomzx)

---

Top Contributors

[![tomzx](https://avatars.githubusercontent.com/u/188960?v=4)](https://github.com/tomzx "tomzx (5 commits)")

---

Tags

migrationdatabase

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-backup

A Laravel package to backup your application

6.0k21.8M191](/packages/spatie-laravel-backup)[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k7.2M71](/packages/mongodb-laravel-mongodb)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[baum/baum

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

2.3k1.6M55](/packages/baum-baum)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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