PHPackages                             ngmy/laravel-mysql-dumper - 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. ngmy/laravel-mysql-dumper

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

ngmy/laravel-mysql-dumper
=========================

The Laravel package that provides the Artisan command to execute mysqldump.

0.4.0(5y ago)190.9k[3 PRs](https://github.com/ngmy/laravel-mysql-dumper/pulls)MITPHPPHP ^7.3|^8.0

Since Apr 8Pushed 3y ago1 watchersCompare

[ Source](https://github.com/ngmy/laravel-mysql-dumper)[ Packagist](https://packagist.org/packages/ngmy/laravel-mysql-dumper)[ Fund](https://flattr.com/@ngmy)[ GitHub Sponsors](https://github.com/ngmy)[ RSS](/packages/ngmy-laravel-mysql-dumper/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (4)Versions (8)Used By (0)

Laravel MySQL Dumper
====================

[](#laravel-mysql-dumper)

[![Latest Stable Version](https://camo.githubusercontent.com/428e64cf93cefeb4b2318665ae05f8fc9504cb19a50319c81d35e79878a552a3/68747470733a2f2f706f7365722e707567782e6f72672f6e676d792f6c61726176656c2d6d7973716c2d64756d7065722f762f737461626c65)](https://packagist.org/packages/ngmy/laravel-mysql-dumper)[![Total Downloads](https://camo.githubusercontent.com/6244ad6905afc2c5f61d7d228974fd7d127cd8f8332097976b4307f9b585cc5a/68747470733a2f2f706f7365722e707567782e6f72672f6e676d792f6c61726176656c2d6d7973716c2d64756d7065722f646f776e6c6f616473)](https://packagist.org/packages/ngmy/laravel-mysql-dumper)[![Latest Unstable Version](https://camo.githubusercontent.com/4243d8527b03f7fff7ad677a7eea0d9f4378192f5d407697603ad15dc5650b15/68747470733a2f2f706f7365722e707567782e6f72672f6e676d792f6c61726176656c2d6d7973716c2d64756d7065722f762f756e737461626c65)](https://packagist.org/packages/ngmy/laravel-mysql-dumper)[![License](https://camo.githubusercontent.com/ad47a7cfc00e1ec32e28cfe07a03f6e81412ba2234442d971d6a44e9f69ed448/68747470733a2f2f706f7365722e707567782e6f72672f6e676d792f6c61726176656c2d6d7973716c2d64756d7065722f6c6963656e7365)](https://packagist.org/packages/ngmy/laravel-mysql-dumper)[![composer.lock](https://camo.githubusercontent.com/fdd9279190526d0bdae102ae4c73d613a9487a3837bebd078683031f83baaae9/68747470733a2f2f706f7365722e707567782e6f72672f6e676d792f6c61726176656c2d6d7973716c2d64756d7065722f636f6d706f7365726c6f636b)](https://packagist.org/packages/ngmy/laravel-mysql-dumper)
[![PHP CI](https://github.com/ngmy/laravel-mysql-dumper/workflows/PHP%20CI/badge.svg)](https://github.com/ngmy/laravel-mysql-dumper/actions?query=workflow%3A%22PHP+CI%22)[![Coverage Status](https://camo.githubusercontent.com/88c11c7644b5112985ab66d2ba305bade68b6ff2f7b2325d1020925b76578e39/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6e676d792f6c61726176656c2d6d7973716c2d64756d7065722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/ngmy/laravel-mysql-dumper?branch=master)

The Laravel package that provides the Artisan command to execute `mysqldump`.

Features
--------

[](#features)

Laravel MySQL Dumper has the following features:

- Dump all the database from the MySQL database
- Dump only the data from the MySQL database
- Dump only the schema from the MySQL database
- Dump from the MySQL database with your dump setting, such as `mysqldump` options

Requirements
------------

[](#requirements)

Laravel MySQL Dumper has the following requirements:

- PHP &gt;= 7.3
- Laravel &gt;= 6.0

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

[](#installation)

Execute the Composer `require` command:

```
composer require ngmy/laravel-mysql-dumper
```

This will update your `composer.json` file and install this package into the `vendor` directory.

If you don't use package discovery, add the service provider to the `providers` array in the `config/app.php` file:

```
Ngmy\LaravelMysqlDumper\MysqlDumperServiceProvider::class,
```

### Publishing Configuration

[](#publishing-configuration)

Execute the Artisan `vendor:publish` command:

```
php artisan vendor:publish
```

This will publish the configuration file to the `config/ngmy-mysql-dumper.php` file.

You can also use the tag to execute the command:

```
php artisan vendor:publish --tag=ngmy-mysql-dumper
```

You can also use the service provider to execute the command:

```
php artisan vendor:publish --provider="Ngmy\LaravelMysqlDumper\MysqlDumperServiceProvider"
```

Usage
-----

[](#usage)

### Dump All the Database

[](#dump-all-the-database)

```
php artisan mysql-dumper:dump
```

### Dump Only the Schema

[](#dump-only-the-schema)

```
php artisan mysql-dumper:dump --setting=schema
```

### Dump Only the Data

[](#dump-only-the-data)

```
php artisan mysql-dumper:dump --setting=data
```

### Dump with Your Dump Setting

[](#dump-with-your-dump-setting)

Add the dump setting to the `settings` array in the `config/ngmy-mysql-dumper.php` file.
Then, use the dump setting to execute the command:

```
php artisan mysql-dumper:dump --setting=your_setting
```

### Dump to Import with Laravel

[](#dump-to-import-with-laravel)

Use the dump setting with the `importalbe_with_laravel` option `true` to execute the command:

```
php artisan mysql-dumper:dump
```

Then, use the `unprepared` method to import the dump file, such as in your migration.

```
DB::unprepared(file_get_contents($dumpFile));
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

Total

4

Last Release

1954d ago

PHP version history (2 changes)0.1.0PHP ^7.2

0.4.0PHP ^7.3|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/7420a4f9654469ce1854f94fe56c240f0b930e692cdcfc8746f8a46480d9579d?d=identicon)[ngmy](/maintainers/ngmy)

---

Top Contributors

[![ngmy](https://avatars.githubusercontent.com/u/864041?v=4)](https://github.com/ngmy "ngmy (31 commits)")

---

Tags

laravellibrarymigrationmysqlmysqldumpphp

### Embed Badge

![Health badge](/badges/ngmy-laravel-mysql-dumper/health.svg)

```
[![Health](https://phpackages.com/badges/ngmy-laravel-mysql-dumper/health.svg)](https://phpackages.com/packages/ngmy-laravel-mysql-dumper)
```

###  Alternatives

[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[cybercog/laravel-love

Make Laravel Eloquent models reactable with any type of emotions in a minutes!

1.2k302.7k1](/packages/cybercog-laravel-love)[cviebrock/eloquent-taggable

Easy ability to tag your Eloquent models in Laravel.

567694.8k3](/packages/cviebrock-eloquent-taggable)[clickbar/laravel-magellan

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

423715.4k1](/packages/clickbar-laravel-magellan)[genealabs/laravel-pivot-events

This package introduces new eloquent events for sync(), attach(), detach() or updateExistingPivot() methods on BelongsToMany relation.

1404.9M8](/packages/genealabs-laravel-pivot-events)[reedware/laravel-relation-joins

Adds the ability to join on a relationship by name.

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

PHPackages © 2026

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