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(4y ago)05.1k↓23.8%1MITPHPPHP ^7.1.3|^8

Since Jul 2Pushed 4y 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 3d 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 35% 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

1466d ago

PHP version history (2 changes)0.1PHP ^7.1.3

0.3.2PHP ^7.1.3|^8

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/40502810?v=4)[kodeops](/maintainers/kodeops)[@kodeops](https://github.com/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

[spatie/laravel-medialibrary

Associate files with Eloquent models

6.1k43.2M633](/packages/spatie-laravel-medialibrary)[wnx/laravel-backup-restore

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

213421.2k2](/packages/wnx-laravel-backup-restore)[relaticle/flowforge

Flowforge is a lightweight Kanban board package for Filament that works with existing Eloquent models.

413106.5k6](/packages/relaticle-flowforge)[lacodix/laravel-model-filter

A Laravel package to filter, search and sort models with ease while fetching from database.

17558.6k](/packages/lacodix-laravel-model-filter)[relaticle/custom-fields

User Defined Custom Fields for Laravel Filament

16354.2k](/packages/relaticle-custom-fields)[guanguans/laravel-dump-sql

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

3837.9k](/packages/guanguans-laravel-dump-sql)

PHPackages © 2026

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