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

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

jamesfreeman/laravel-data-migrations
====================================

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

2.0.0(2y ago)02.8kMITPHPPHP ^8.1

Since Feb 9Pushed 2y agoCompare

[ Source](https://github.com/JamesFreeman/laravel-data-migrations)[ Packagist](https://packagist.org/packages/jamesfreeman/laravel-data-migrations)[ RSS](/packages/jamesfreeman-laravel-data-migrations/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (3)Dependencies (2)Versions (6)Used By (0)

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:

```
composer require jamesfreeman/laravel-data-migrations
```

or add

```
...
    "require": {
        "jamesfreeman/laravel-data-migrations": "^2.0"
    }
```

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' => [
        \JamesFreeman\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 first 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 © 2021 José Lorente Martín , Eran Machiels .

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

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~237 days

Total

5

Last Release

1020d ago

Major Versions

1.2.1 → 2.0.02023-09-16

PHP version history (2 changes)1.0.0PHP ^7.4|^8.0

2.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/2ec91a132adca26899c1956976241f647e2f8bae33f5eae97d2f6c57d2f1a392?d=identicon)[JamesFreeman](/maintainers/JamesFreeman)

---

Top Contributors

[![jlorente](https://avatars.githubusercontent.com/u/301741?v=4)](https://github.com/jlorente "jlorente (15 commits)")[![EranNL](https://avatars.githubusercontent.com/u/10157169?v=4)](https://github.com/EranNL "EranNL (10 commits)")[![JamesFreeman](https://avatars.githubusercontent.com/u/916500?v=4)](https://github.com/JamesFreeman "JamesFreeman (3 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![fgibaux](https://avatars.githubusercontent.com/u/1101218?v=4)](https://github.com/fgibaux "fgibaux (1 commits)")[![modernben](https://avatars.githubusercontent.com/u/67608755?v=4)](https://github.com/modernben "modernben (1 commits)")

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-medialibrary

Associate files with Eloquent models

6.1k43.2M625](/packages/spatie-laravel-medialibrary)[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k8.4M94](/packages/mongodb-laravel-mongodb)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8793.2M25](/packages/yajra-laravel-oci8)[kirschbaum-development/eloquent-power-joins

The Laravel magic applied to joins.

1.6k32.6M46](/packages/kirschbaum-development-eloquent-power-joins)[glushkovds/phpclickhouse-laravel

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

2051.5M2](/packages/glushkovds-phpclickhouse-laravel)

PHPackages © 2026

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