PHPackages                             jlorente/laravel-data-migrations - 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. jlorente/laravel-data-migrations

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

jlorente/laravel-data-migrations
================================

An extension to allow you to separate data migrations from structure migrations

2.0.2(1y ago)34201.8k↓14.8%101MITPHPPHP &gt;=7.4.0

Since Feb 13Pushed 1y ago1 watchersCompare

[ Source](https://github.com/jlorente/laravel-data-migrations)[ Packagist](https://packagist.org/packages/jlorente/laravel-data-migrations)[ RSS](/packages/jlorente-laravel-data-migrations/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)Dependencies (1)Versions (15)Used By (1)

Data Migrations for Laravel
===========================

[](#data-migrations-for-laravel)

This extension allows you to separate data migrations from structure migrations.

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

With Composer installed, you can then install the extension using the following commands:

**NOTE:** Until laravel 7.x use version 1.x. From laravel 8.0 and later use 2.x

```
$ php composer.phar require jlorente/laravel-data-migrations
```

or add

```
...
    "require": {
        "jlorente/laravel-data-migrations": "*"
    }
```

to the `require` section of your `composer.json` file.

Configuration
-------------

[](#configuration)

1. Register the ServiceProvider in your config/app.php service provider list. This step can be skipped in Laravel 5.5+

config/app.php

```
return [
    //other stuff
    'providers' => [
        //other stuff
        \Jlorente\DataMigrations\DataMigrationsServiceProvider::class,
    ];
];
```

2. Publish the new assets.

```
php artisan vendor:publish --tag=data-migrations
```

This will create the default migrations directory and the config/data-migrations.php file.

Usage
-----

[](#usage)

By default, the table used to store the data migrations is "migrations\_data" table. You can change the table on the config/data-migrations.php file.

The data migrations will be stored in the migrations\_data folder of the database path if no path is specified in the command execution.

The available commands of the package are:

*Create migration command*

```
php artisan make:data-migration [name] [--path=]
```

The firts time you use it the data migrations table will be created.

*Run migration command*

```
php artisan migrate-data [--path=]
```

*Rollback migration command*

```
php artisan migrate-data:rollback [--path=]
```

The behavior of the migrations is the same as the regular migrations.

License
-------

[](#license)

Copyright © 2018 José Lorente Martín .

Licensed under the MIT license. See LICENSE.txt for details.

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity46

Moderate usage in the ecosystem

Community19

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 90.5% 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 ~187 days

Recently: every ~371 days

Total

14

Last Release

624d ago

Major Versions

1.1.5 → 2.0.02022-02-02

PHP version history (2 changes)1.1.0PHP &gt;=7.0.0

2.0.0PHP &gt;=7.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/b5b6d568331349beaf1945db65a076cf60e6c124d504fcb43a21937f0c85bde3?d=identicon)[jlorente](/maintainers/jlorente)

---

Top Contributors

[![jlorente](https://avatars.githubusercontent.com/u/301741?v=4)](https://github.com/jlorente "jlorente (19 commits)")[![fgibaux](https://avatars.githubusercontent.com/u/1101218?v=4)](https://github.com/fgibaux "fgibaux (1 commits)")[![jeffhuys](https://avatars.githubusercontent.com/u/2276233?v=4)](https://github.com/jeffhuys "jeffhuys (1 commits)")

---

Tags

data-migrationlaravelmigrations

### Embed Badge

![Health badge](/badges/jlorente-laravel-data-migrations/health.svg)

```
[![Health](https://phpackages.com/badges/jlorente-laravel-data-migrations/health.svg)](https://phpackages.com/packages/jlorente-laravel-data-migrations)
```

###  Alternatives

[illuminate/database

The Illuminate Database package.

2.8k54.9M11.7k](/packages/illuminate-database)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8793.2M25](/packages/yajra-laravel-oci8)[glushkovds/phpclickhouse-laravel

Adapter of the most popular library https://github.com/smi2/phpClickHouse to Laravel

2051.5M2](/packages/glushkovds-phpclickhouse-laravel)[lemaur/eloquent-publishing

218.1k1](/packages/lemaur-eloquent-publishing)

PHPackages © 2026

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