PHPackages                             netsells/laravel-mutex-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. netsells/laravel-mutex-migrations

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

netsells/laravel-mutex-migrations
=================================

Run mutually exclusive migrations from more than one server at a time

v3.0.0(1y ago)122.1k—10%1MITPHPPHP ^8.2CI passing

Since Mar 10Pushed 1y ago1 watchersCompare

[ Source](https://github.com/netsells/laravel-mutex-migrations)[ Packagist](https://packagist.org/packages/netsells/laravel-mutex-migrations)[ RSS](/packages/netsells-laravel-mutex-migrations/feed)WikiDiscussions 3.x Synced 1mo ago

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

Mutex Migrations for Laravel
============================

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

Run mutually exclusive migrations from more than one server at a time.

Using Laravel's functionality for [Atomic Locks](https://laravel.com/docs/9.x/cache#atomic-locks), this package extends the built-in `MigrateCommand` class to allow migrations to be run safely when there is the chance that they may be run concurrently against the same database.

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

[](#installation)

Install the package with:

`composer require netsells/laravel-mutex-migrations`

Optionally publish the package config file:

`php artisan vendor:publish --tag=mutex-migrations-config`

Usage
-----

[](#usage)

Running a mutex migration using the default `database` store requires the existence of a table to store cache locks. If it does not exist the command will automatically fallback to a standard migration.

`php artisan migrate --mutex`

If two or more migrations happen to run concurrently, the first to acquire a lock will block the next one from running until it has finished, or until the lock times out - after 60 seconds, by default.

Testing
-------

[](#testing)

`./vendor/bin/phpunit`

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance44

Moderate activity, may be stable

Popularity28

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 95.3% 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 ~121 days

Recently: every ~178 days

Total

7

Last Release

437d ago

Major Versions

1.x-dev → 2.x-dev2024-03-28

v2.0.0 → 3.x-dev2025-03-07

PHP version history (2 changes)v1.0.0PHP ^8.1

2.x-devPHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/624c4f6bab3e31a7f022c26be6166a2c362a2d769675f585eda44c07e1693a43?d=identicon)[tomchkk](/maintainers/tomchkk)

---

Top Contributors

[![tomchkk](https://avatars.githubusercontent.com/u/6698306?v=4)](https://github.com/tomchkk "tomchkk (41 commits)")[![bensherred](https://avatars.githubusercontent.com/u/22666637?v=4)](https://github.com/bensherred "bensherred (2 commits)")

---

Tags

laravelmutexmigrationsnetsells

### Embed Badge

![Health badge](/badges/netsells-laravel-mutex-migrations/health.svg)

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

###  Alternatives

[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

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

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

423715.4k1](/packages/clickbar-laravel-magellan)[laravel-doctrine/orm

An integration library for Laravel and Doctrine ORM

8425.3M87](/packages/laravel-doctrine-orm)[watson/validating

Eloquent model validating trait.

9723.3M47](/packages/watson-validating)[reedware/laravel-relation-joins

Adds the ability to join on a relationship by name.

2121.2M13](/packages/reedware-laravel-relation-joins)[cybercog/laravel-clickhouse

ClickHouse migrations for Laravel

163166.8k](/packages/cybercog-laravel-clickhouse)

PHPackages © 2026

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