PHPackages                             herroffizier/yii2-dumpling - 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. herroffizier/yii2-dumpling

ActiveYii2-extension

herroffizier/yii2-dumpling
==========================

Dump and restore databases in Yii2.

08PHP

Since Mar 24Pushed 10y ago1 watchersCompare

[ Source](https://github.com/herroffizier/yii2-dumpling)[ Packagist](https://packagist.org/packages/herroffizier/yii2-dumpling)[ RSS](/packages/herroffizier-yii2-dumpling/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 Dumpling
=============

[](#yii2-dumpling)

[![Build Status](https://camo.githubusercontent.com/68b20eca797154676aacde433444ebc48d578caa7b2a4d34769c87c4b194173b/68747470733a2f2f7472617669732d63692e6f72672f686572726f6666697a6965722f796969322d64756d706c696e672e7376673f6272616e63683d646576656c6f70)](https://travis-ci.org/herroffizier/yii2-dumpling) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/1ee2fc06b1b5161be1fadd780e51000191bafb0f57cc2d8c928ce4a0a0d2400b/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f686572726f6666697a6965722f796969322d64756d706c696e672f6261646765732f7175616c6974792d73636f72652e706e673f623d646576656c6f70)](https://scrutinizer-ci.com/g/herroffizier/yii2-dumpling/?branch=develop) [![Code Coverage](https://camo.githubusercontent.com/7d3da90ea5efaa2e31eaa69c186ac2995c6ca6c306bc41f0d76bc5162016b8fb/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f686572726f6666697a6965722f796969322d64756d706c696e672f6261646765732f636f7665726167652e706e673f623d646576656c6f70)](https://scrutinizer-ci.com/g/herroffizier/yii2-dumpling/?branch=develop)

Yii2 Dumpling is a simple Yii2 extension for dumping and restoring databases.

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

[](#installation)

Install extension with Composer:

```
composer require "herroffizier/yii2-dumpling:@stable"
```

Update your app config:

```
// Add module to bootstrap
'bootstrap' => [

    // ...

    'dumpling',

    // ...

],

// Add module to app
'modules' => [

    // ...

    'dumpling' => [
        'class' => 'herroffizier\yii2dumpling\Module',
    ],

    // ...

],
```

And you're done.

Usage
-----

[](#usage)

Currently only MySQL databases are supported.

### API

[](#api)

To dump database:

```
Yii::$app->dumpling->dump();
```

To restore database:

```
Yii::$app->dumpling->restore();
```

By default Dumpling uses `db` as database component and `@app/runtime/dump.sql` as dump file name. These values may be customized either by module config or by method arguments. Refer to source code for details.

In case of error `yii\base\Exception` will be thrown.

### Console

[](#console)

You also may use Dumpling in a console.

To dump:

```
php yii dumpling/dump
```

To restore:

```
php yii dumpling/restore
```

Both commands supports `--file` and `--db` options for setting dump file name and database component accordingly.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/820232d3f5de11b08332a98ca93b025ab46d7e3563ddaec2ce6d042828718983?d=identicon)[herroffizier](/maintainers/herroffizier)

---

Top Contributors

[![korotin](https://avatars.githubusercontent.com/u/277992?v=4)](https://github.com/korotin "korotin (11 commits)")

### Embed Badge

![Health badge](/badges/herroffizier-yii2-dumpling/health.svg)

```
[![Health](https://phpackages.com/badges/herroffizier-yii2-dumpling/health.svg)](https://phpackages.com/packages/herroffizier-yii2-dumpling)
```

PHPackages © 2026

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