PHPackages                             aramayismirzoyan/laravel-safe-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. aramayismirzoyan/laravel-safe-migrations

ActiveLibrary

aramayismirzoyan/laravel-safe-migrations
========================================

Tool for tracking uncontrolled migrations

v1.0.2(1y ago)163MITPHPPHP ^8.2

Since Feb 24Pushed 1y ago1 watchersCompare

[ Source](https://github.com/aramayismirzoyan/laravel-safe-migrations)[ Packagist](https://packagist.org/packages/aramayismirzoyan/laravel-safe-migrations)[ Docs](https://github.com/aramayismirzoyan/laravel-safe-migrations)[ RSS](/packages/aramayismirzoyan-laravel-safe-migrations/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (7)Versions (7)Used By (0)

Laravel Safe Migrations
=======================

[](#laravel-safe-migrations)

The Laravel Safe Migrations package helps you detect migrations you have changed but already exist in the remote repository. The package will also help you detect migrations that have been changed by other programmers but have already been migrated to your local environment. The package tracks changes based on Git.

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

[](#installation)

```
composer require --dev aramayismirzoyan/laravel-safe-migrations

```

Commands
--------

[](#commands)

### check:migrations

[](#checkmigrations)

This command checks the migrations you changed, and they are already in the remote repository.

```
php artisan check:migrations

```

You can also specify specific branches and remotes. You must specify the remote branches on which you want to check for the existence of the migration. If you specify branches and remotes the check will be much faster.

```
php artisan check:migrations main branch2 --remote=origin --remote=local

```

To update data from a remote repository, set the --fetch flag.

```
php artisan check:migrations --fetch

```

### check:migrated

[](#checkmigrated)

The command checks if you have migrated migrations that have been changed by other programmers. The command checks the changes you have pulled using the `git pull` command.

```
php artisan check:migrated

```

If you do not specify a commit hash, then the commit you pulled using the `git pull` command will be checked. You can also specify the hash of the commit you want to check.

```
php artisan check:migrated commit_hash

```

GitHub Actions
--------------

[](#github-actions)

You can also run migration checking on your GitHub Actions. You need to have this configuration:

```
    steps:
    - name: Setup PHP
      uses: shivammathur/setup-php@v2
      with:
        php-version: '8.2'
    - uses: actions/checkout@v4
      with:
        fetch-depth: ${{ github.event_name == 'pull_request' && 2 }}
    - name: Install Dependencies
      run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
    - name: Check migrations
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      run: php artisan actions:migrations

```

In the `php artisan actions:migrations` command you need to pass your main branch as an argument. The check will only happen during a pull request and will check for migrations on the main branch. If there is at least one sensitive migration pipeline that will fail.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance46

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Total

6

Last Release

418d ago

Major Versions

0.1.2 → v1.0.02025-02-26

### Community

Maintainers

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

---

Top Contributors

[![aramayismirzoyan](https://avatars.githubusercontent.com/u/41958764?v=4)](https://github.com/aramayismirzoyan "aramayismirzoyan (34 commits)")

---

Tags

laravellaravel-safe-migrations

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/aramayismirzoyan-laravel-safe-migrations/health.svg)

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

###  Alternatives

[slowlyo/owl-admin

基于 laravel、amis 开发的后台框架~

61214.2k26](/packages/slowlyo-owl-admin)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)[highsolutions/eloquent-sequence

A Laravel package for easy creation and management sequence support for Eloquent models with elastic configuration.

121130.3k](/packages/highsolutions-eloquent-sequence)[glhd/linen

21135.6k](/packages/glhd-linen)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)

PHPackages © 2026

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