PHPackages                             yadakhov/laradump - 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. yadakhov/laradump

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

yadakhov/laradump
=================

A mysqldump wrapper for laravel. Dump your table schemas and data into files.

v2.3.4(2y ago)2517.7k↓45.5%1MITPHPPHP ^7.2|^8.0

Since Aug 2Pushed 2y ago1 watchersCompare

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

READMEChangelog (10)Dependencies (1)Versions (31)Used By (0)

Laradump
========

[](#laradump)

A wrapper package to run mysqldump from laravel console commands.

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

[](#installation)

### Install from [packagist](https://packagist.org/packages/yadakhov/laradump)

[](#install-from-packagist)

```
composer require yadakhov/laradump

```

### Add to providers array in `config/app.php`

[](#add-to-providers-array-in-configappphp)

```
    'providers' => [
        // ...others

        Yadakhov\Laradump\LaradumpServiceProvider::class,
    ],
```

### Create configuration file `config/laradump.php`.

[](#create-configuration-file-configlaradumpphp)

```
php artisan vendor:publish

```

Laradump commands
-----------------

[](#laradump-commands)

Once the LaradumpServiceProvider is registered, the commands will show up when you do a `php artisan`.

```
php artisan

```

```
 ...
 laradump
  laradump:drop-tables        Drop tables that do not have backup files.
  laradump:list               List all tables to perform individually.
  laradump:mysqldump          Perform a MySQL dump on every tables.
  laradump:restore            Perform a restore on every tables.
  laradump:save-to-s3         Save laradump folder to s3
  laradump:sync-from-s3       Sync laradump folder from s3
 ...
```

### Doing a mysqldump

[](#doing-a-mysqldump)

```
php artisan laradump:mysqldump

```

Will perform a mysqldump of each table in your database and store it in the `storage/dumps` folder.

### Doing a mysql restore

[](#doing-a-mysql-restore)

```
php artisan laradump:restore

```

Will load all sql files in `/storage/dumps.`

### Perform backup and restore on individual table

[](#perform-backup-and-restore-on-individual-table)

```
php artisan laradump:mysqldump  --table=user
php artisan laradump:restore  --table=user

# To see a list of possible tables
php artisan laradump:list

```

### Ensure the storage folder is writable.

[](#ensure-the-storage-folder-is-writable)

```
# Create the tables for storing the files
mkdir storage/laradump/tables
mkdir storage/laradump/data

sudo chmod o+w -R storage

```

### Add ignore the dump files in git

[](#add-ignore-the-dump-files-in-git)

```
# add line to your .gitignore
/storage/laradump

```

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor1

Top contributor holds 96.6% 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 ~88 days

Recently: every ~18 days

Total

30

Last Release

1013d ago

Major Versions

v1.2.8 → v2.0.02019-10-02

v1.x-dev → v2.3.42023-08-09

PHP version history (3 changes)v1.0PHP &gt;=5.4.0

v2.0.0PHP ^7.2

v2.2.0PHP ^7.2|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/7e2a2bbdfd6287c649a9759274fbd47d769ea78bf09b03ee3dcefe42790a95d4?d=identicon)[yadakhov](/maintainers/yadakhov)

---

Top Contributors

[![yadakhov](https://avatars.githubusercontent.com/u/146636?v=4)](https://github.com/yadakhov "yadakhov (28 commits)")[![connected-ykhov](https://avatars.githubusercontent.com/u/50597467?v=4)](https://github.com/connected-ykhov "connected-ykhov (1 commits)")

---

Tags

laravelmigrationmysqlmysqldump

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/yadakhov-laradump/health.svg)

```
[![Health](https://phpackages.com/badges/yadakhov-laradump/health.svg)](https://phpackages.com/packages/yadakhov-laradump)
```

###  Alternatives

[clouddueling/mysqldump-php

PHP version of mysqldump cli that comes with MySQL

1.3k22.9k](/packages/clouddueling-mysqldump-php)[awssat/laravel-sync-migration

Laravel tool helps to sync migrations without refreshing the database

10923.2k](/packages/awssat-laravel-sync-migration)[tpetry/laravel-mysql-explain

Get Visual MySQL EXPLAIN for Laravel.

264154.2k](/packages/tpetry-laravel-mysql-explain)[fisharebest/laravel-floats

Floating point support for Laravel migrations

1111.4k](/packages/fisharebest-laravel-floats)[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)
