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

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

kodeops/laravel-mysql-dumper
============================

Dump and restore the contents of a MySQL database

0.3.3(3y ago)04.9k↓50%1MITPHPPHP ^7.1.3|^8

Since Jul 2Pushed 3y ago1 watchersCompare

[ Source](https://github.com/kodeops/laravel-mysql-dumper)[ Packagist](https://packagist.org/packages/kodeops/laravel-mysql-dumper)[ Docs](https://github.com/kodeops/laravel-mysql-dumper)[ RSS](/packages/kodeops-laravel-mysql-dumper/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (12)Used By (0)

```
 _     _  _____  ______  _______  _____   _____  _______
 |____/  |     | |     \ |______ |     | |_____] |______
 |    \_ |_____| |_____/ |______ |_____| |       ______|

```

kodeops/laravel-mysql-dumper
============================

[](#kodeopslaravel-mysql-dumper)

Dump and restore the contents of a MySQL database.

Install
-------

[](#install)

### Add composer dependency

[](#add-composer-dependency)

`composer require kodeops/laravel-mysql-dumper`

### Add database connection settings to the environment file

[](#add-database-connection-settings-to-the-environment-file)

The `SOURCE` prefix indicates the database settings where the dump will be generated from:

```
MYSQL_DUMPER_DESTINATION_HOST=
MYSQL_DUMPER_DESTINATION_PORT=
MYSQL_DUMPER_DESTINATION_DATABASE=
MYSQL_DUMPER_DESTINATION_USERNAME=
MYSQL_DUMPER_DESTINATION_PASSWORD=

```

The `DESTINATION` prefix indicates the database settings where the dump will be imported:

```
MYSQL_DUMPER_SOURCE_HOST=
MYSQL_DUMPER_SOURCE_PORT=
MYSQL_DUMPER_SOURCE_DATABASE=
MYSQL_DUMPER_SOURCE_USERNAME=
MYSQL_DUMPER_SOURCE_PASSWORD=

```

Example:

```
MYSQL_DUMPER_DESTINATION_HOST=127.0.0.1
MYSQL_DUMPER_DESTINATION_PORT=3306
MYSQL_DUMPER_DESTINATION_DATABASE=destination-database
MYSQL_DUMPER_DESTINATION_USERNAME=root
MYSQL_DUMPER_DESTINATION_PASSWORD=secret

MYSQL_DUMPER_SOURCE_HOST=127.0.0.1
MYSQL_DUMPER_SOURCE_PORT=3306
MYSQL_DUMPER_SOURCE_DATABASE=source-database
MYSQL_DUMPER_SOURCE_USERNAME=root
MYSQL_DUMPER_SOURCE_PASSWORD=secret

```

Using the command line
----------------------

[](#using-the-command-line)

### Cloning the source database to the destination database

[](#cloning-the-source-database-to-the-destination-database)

`php artisan mysql-dumper:clone`

### Exporting the source database to a file

[](#exporting-the-source-database-to-a-file)

`php artisan mysql-dumper:export`

### Importing a dump file to the destination database

[](#importing-a-dump-file-to-the-destination-database)

`php artisan mysql-dumper:import /home/vagrant/app/storage/laravel-mysql-dumper/test.sql`

Production safe
---------------

[](#production-safe)

The command is not available in production environments unless you add the `--force` option:

`php artisan mysql-dumper:clone`

Dump storage
------------

[](#dump-storage)

All dumps are located in the laraval storage path in `laravel-mysql-dumper` folder:

`/home/vagrant/app/storage/laravel-mysql-dumper`

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

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

Recently: every ~89 days

Total

11

Last Release

1413d ago

PHP version history (2 changes)0.1PHP ^7.1.3

0.3.2PHP ^7.1.3|^8

### Community

Maintainers

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

---

Tags

laraveldumpmysqlkodeops

### Embed Badge

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

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

###  Alternatives

[tpetry/laravel-mysql-explain

Get Visual MySQL EXPLAIN for Laravel.

264154.2k](/packages/tpetry-laravel-mysql-explain)[guanguans/laravel-dump-sql

laravel 中轻松容易的输出完整的 SQL 语句。 - Easy output of complete SQL statements for laravel framework.

3635.6k](/packages/guanguans-laravel-dump-sql)[moharrum/laravel-adminer

Adminer database management tool for your Laravel application.

451.0k](/packages/moharrum-laravel-adminer)[mpyw/laravel-mysql-system-variable-manager

A tiny extension of MySqlConnection that manages session system variables

115.8k](/packages/mpyw-laravel-mysql-system-variable-manager)

PHPackages © 2026

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