PHPackages                             joshbrw/laravel-module-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. joshbrw/laravel-module-migrations

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

joshbrw/laravel-module-migrations
=================================

Adds functionality for running migrations from other modules.

v2.0.0(7y ago)03.7kMITPHPPHP &gt;=7.2

Since Mar 15Pushed 7y agoCompare

[ Source](https://github.com/joshbrw/laravel-module-migrations)[ Packagist](https://packagist.org/packages/joshbrw/laravel-module-migrations)[ RSS](/packages/joshbrw-laravel-module-migrations/feed)WikiDiscussions master Synced 4w ago

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

Laravel Module Migrations
=========================

[](#laravel-module-migrations)

Provides a Trait that can be used on migrations with Laravel Modules to ensure that a table from another Module exists. This solves any cross-module table dependency issues.

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

[](#installation)

1. Publish the config to `config/module-migrations.php` by running:

    `php artisan vendor:publish --provider="Joshbrw\LaravelModuleMigrations\LaravelModuleMigrationsServiceProvider"`
2. Write your table definitions within this config file. This config file should define the tables that can be created, the module that their migrations exist in and any migrations that should be ran to create this table.
3. In any migrations that require tables created in other modules, `use Joshbrw\LaravelModuleMigrations\Traits\ModuleMigrator`.
4. Use `$this->ensureTableExists('tableName');` wherever you want the tables to be created.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity63

Established project with proven stability

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

Recently: every ~185 days

Total

7

Last Release

2651d ago

Major Versions

v0.1.2 → v1.02017-10-27

v1.2 → v2.0.02019-03-28

PHP version history (2 changes)v0.1.0PHP &gt;=5.6

v2.0.0PHP &gt;=7.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/779766?v=4)[Josh Brown](/maintainers/joshbrw)[@joshbrw](https://github.com/joshbrw)

---

Top Contributors

[![joshbrw](https://avatars.githubusercontent.com/u/779766?v=4)](https://github.com/joshbrw "joshbrw (2 commits)")

### Embed Badge

![Health badge](/badges/joshbrw-laravel-module-migrations/health.svg)

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

###  Alternatives

[kirschbaum-development/eloquent-power-joins

The Laravel magic applied to joins.

1.6k29.9M42](/packages/kirschbaum-development-eloquent-power-joins)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8723.1M23](/packages/yajra-laravel-oci8)[glushkovds/phpclickhouse-laravel

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

2051.4M2](/packages/glushkovds-phpclickhouse-laravel)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

438834.4k1](/packages/clickbar-laravel-magellan)[laravel-liberu/laravel-gedcom

A package that converts gedcom files to Eloquent models

782.5k1](/packages/laravel-liberu-laravel-gedcom)

PHPackages © 2026

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