PHPackages                             sextanet/migrate-shield - 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. sextanet/migrate-shield

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

sextanet/migrate-shield
=======================

This is my package migrate-shield

0.0.2(1y ago)09[1 PRs](https://github.com/sextanet/migrate-shield/pulls)MITPHPPHP ^8.2CI passing

Since Jan 25Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/sextanet/migrate-shield)[ Packagist](https://packagist.org/packages/sextanet/migrate-shield)[ Docs](https://github.com/sextanet/migrate-shield)[ GitHub Sponsors](https://github.com/SextaNet)[ RSS](/packages/sextanet-migrate-shield/feed)WikiDiscussions main Synced 1mo ago

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

Migrate Shield
==============

[](#migrate-shield)

[![Latest Version on Packagist](https://camo.githubusercontent.com/1825033c1f2a47381df9f5b01ccad98c0c9368f4272f61ebb94e19c0d0d37e54/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73657874616e65742f6d6967726174652d736869656c642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sextanet/migrate-shield)[![GitHub Tests Action Status](https://camo.githubusercontent.com/866e2d45e0c7a50e6ae51a2edb0c143d4e9699e162b5b952f434a9787de6c119/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f73657874616e65742f6d6967726174652d736869656c642f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/sextanet/migrate-shield/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/138e08a21a83e6ef6d6b81cada5c471522bde456bee7a8b20b733deb8c384fae/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f73657874616e65742f6d6967726174652d736869656c642f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/sextanet/migrate-shield/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/a8605e09b47baa905d323fa5486a03b4c0f208d0aef801a643508889928f7803/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73657874616e65742f6d6967726174652d736869656c642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sextanet/migrate-shield)

Protects your production environment by backing up your database

It uses [Spatie's Laravel Backup](https://spatie.be/docs/laravel-backup/) behind the scenes.

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

[](#installation)

You can install the package via composer:

```
composer require sextanet/migrate-shield
```

Usage
-----

[](#usage)

Simply, use your traditional commands in production mode

```
php artisan migrate:fresh # --seed
```

You will get covered and intercepted with Shield

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

[](#configuration)

By default, it works inmediately with zero config. But also, you can customize some things in your `.env` file

```
MIGRATE_SHIELD_DISK=local
MIGRATE_SHIELD_PASSWORD="YOURPASSWORD"
```

Optionally, you can publish the config file with:

```
php artisan vendor:publish --tag="migrate-shield-config"
```

Troubleshooting
---------------

[](#troubleshooting)

If have your `mysqldump` or `pg_dump` in another location, you need to add `dump binary path`

Source:

```
//config/database.php

'connections' => [
    'mysql' => [
        'driver' => 'mysql'
        // (...),
        'dump' => [
            'dump_binary_path' => env('MYSQL_DUMP_BINARY_PATH', null), // only the path, so without `mysqldump` or `pg_dump`
            'timeout' => env('MYSQL_DUMP_TIMEOUT', 60 * 5), // 5 minutes timuout
        ],
    ]
],
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [SextaNet](https://github.com/SextaNet)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance50

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 78.9% 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 ~0 days

Total

3

Last Release

478d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5f00131e3e5dda3db4f1f0498fa677591bbd94d5c7087e24dcbd851cdecd9e84?d=identicon)[sextanet](/maintainers/sextanet)

---

Top Contributors

[![sebacarrasco93](https://avatars.githubusercontent.com/u/30738997?v=4)](https://github.com/sebacarrasco93 "sebacarrasco93 (30 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (4 commits)")

---

Tags

laravelSextaNetmigrate-shield

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/sextanet-migrate-shield/health.svg)

```
[![Health](https://phpackages.com/badges/sextanet-migrate-shield/health.svg)](https://phpackages.com/packages/sextanet-migrate-shield)
```

###  Alternatives

[wnx/laravel-backup-restore

A package to restore database backups made with spatie/laravel-backup.

203330.1k2](/packages/wnx-laravel-backup-restore)[dyrynda/laravel-model-uuid

This package allows you to easily work with UUIDs in your Laravel models.

4802.8M8](/packages/dyrynda-laravel-model-uuid)[spatie/laravel-model-flags

Add flags to Eloquent models

4301.1M1](/packages/spatie-laravel-model-flags)[clickbar/laravel-magellan

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

423715.4k1](/packages/clickbar-laravel-magellan)[spatie/laravel-sql-commenter

Add comments to SQL queries made by Laravel

1931.4M1](/packages/spatie-laravel-sql-commenter)[spatie/laravel-deleted-models

Automatically copy deleted records to a separate table

409109.8k4](/packages/spatie-laravel-deleted-models)

PHPackages © 2026

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