PHPackages                             webino/webino-dbdump - 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. [Framework](/categories/framework)
4. /
5. webino/webino-dbdump

ActiveLibrary[Framework](/categories/framework)

webino/webino-dbdump
====================

Database Dump Utility for Zend Framework 2

0.1.0(10y ago)3544BSD-3-ClausePHPPHP &gt;=5.4

Since Apr 9Pushed 8y ago1 watchersCompare

[ Source](https://github.com/webino/WebinoDbDump)[ Packagist](https://packagist.org/packages/webino/webino-dbdump)[ Docs](http://github.com/webino/WebinoDbDump)[ RSS](/packages/webino-webino-dbdump/feed)WikiDiscussions develop Synced 3d ago

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

Database Dump Utility
 for Zend Framework 2
============================================

[](#database-dump-utility--for-zend-framework-2)

[![Build Status](https://camo.githubusercontent.com/da7441dc159f5d816d551cace20437b483bc7a58de396128734dd710f72847f6/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f776562696e6f2f576562696e6f446244756d702e706e673f6272616e63683d646576656c6f70)](http://travis-ci.org/webino/WebinoDbDump "Develop Build Status")[![Coverage Status](https://camo.githubusercontent.com/b891b8eb5086b4198304f5a837e1ba1332ec1e185d58e0b247a1df42184ce3f3/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f776562696e6f2f576562696e6f446244756d702f62616467652e706e673f6272616e63683d646576656c6f70)](https://coveralls.io/r/webino/WebinoDbDump?branch=develop "Develop Coverage Status")[![Scrutinizer Quality Score](https://camo.githubusercontent.com/9ff58592216945401b90cc0f114278498056f7785bd50a0297b73476c7994427/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f776562696e6f2f576562696e6f446244756d702f6261646765732f7175616c6974792d73636f72652e706e673f733d38643330323266663438366330356235323434353737653932643539363838393064323866386634)](https://scrutinizer-ci.com/g/webino/WebinoDbDump/ "Quality Score")[![Dependency Status](https://camo.githubusercontent.com/f3b3aad5fd63b7b571c8687c2ac2bdeefd16585ff8524681ce7a2aa7adb275f0/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3532663439313530656331333735666430623030303031312f62616467652e706e67)](https://www.versioneye.com/user/projects/529f8de6632bac79c600003d "Develop Dependency Status")

[![Latest Stable Version](https://camo.githubusercontent.com/1ce3661292d3204a6f6b6d89448b1dc43017cdd5c76e1cc2e3431a3588821705/68747470733a2f2f706f7365722e707567782e6f72672f776562696e6f2f776562696e6f2d64622d64756d702f762f737461626c652e706e67)](https://packagist.org/packages/webino/webino-db-dump "Latest Stable Version")[![Total Downloads](https://camo.githubusercontent.com/770d642023d50c8a48741a32886c2369e04e7980282be90e05bf32857e2ee161/68747470733a2f2f706f7365722e707567782e6f72672f776562696e6f2f776562696e6f2d64622d64756d702f646f776e6c6f6164732e706e67)](https://packagist.org/packages/webino/webino-db-dump "Total Downloads")[![Latest Unstable Version](https://camo.githubusercontent.com/a65e96c438f647ae2c3d4aec55baea3ab8fac014d8fc016439da43e79b9f6dfb/68747470733a2f2f706f7365722e707567782e6f72672f776562696e6f2f776562696e6f2d64622d64756d702f762f756e737461626c652e706e67)](https://packagist.org/packages/webino/webino-db-dump "Latest Unstable Version")[![License](https://camo.githubusercontent.com/249f5aeb985cb6074a816d493410491aad521202faaa9786f66bae7d38983af7/68747470733a2f2f706f7365722e707567782e6f72672f776562696e6f2f776562696e6f2d64622d64756d702f6c6963656e73652e737667)](https://packagist.org/packages/webino/webino-db-dump)

Utility used to dump a database into a SQL file, and to load that file into a database.

Features
--------

[](#features)

- Dump an entire database into a SQL file
- Load a SQL file into a database

Setup
-----

[](#setup)

Following steps are necessary to get this module working, considering a zf2-skeleton or very similar application:

1. Add `"minimum-stability": "dev"` to your composer.json, because this module is under development
2. Run `php composer.phar require webino/webino-db-dump:dev-develop`
3. Add `WebinoDbDump` to the enabled modules list

QuickStart
----------

[](#quickstart)

For example, add this settings to your module config:

```
'di' => [
    'instance' => [
        'alias' => [
            'DefaultDbDump' => \WebinoDbDump\Db\Dump\Dump::class,
        ],
    ],
    'DefaultDbDump' => [
        'parameters' => [
            'adapter' => \Zend\Db\Adapter\Adapter::class,
        ],
    ],
],

```

*NOTE: Change the `DefaultAdapterDump` and `\Zend\Db\Adapter\Adapter::class` as you wish.*

Then, add this code to your controller action:

```
// We encourage to use Dependency Injection instead of Service Locator
$dbDump = $this->getServiceLocator()->get('DefaultDbDump');

// saves the sql code of the entire database to a file
$dbDump->save('example/dump.sql');

// drops & creates tables/views, triggers and inserts the data
$dbDump->load('example/dump.sql');

// or from string
$dbDump->read(new \WebinoDbDump\Db\Sql\SqlString('CREATE TABLE...'));

```

*NOTE: If you don't know how to inject the WebinoDbDump into action controller, check out `test/resources`.*

*NOTE: Use stream wrappers, e.g. `compress.zlib://example.dump.sql.gz`, if you want compression.*

Changelog
---------

[](#changelog)

### 0.2.0 \[UNRELEASED\]

[](#020-unreleased)

- Slightly redesigned
- Added SqlString support

### 0.1.0

[](#010)

- Initial release

TODO
----

[](#todo)

- Tests
- Add support for more platforms (currently only Mysql)
- Better exceptions
- More options
- Events dump
- Upgrade Zend MVC

Addendum
--------

[](#addendum)

Please, if you are interested in this Zend Framework module report any issues and don't hesitate to contribute. We will appreciate any contributions on development of this module.

[Issue](https://github.com/webino/WebinoDbDump/issues) | [Fork](https://github.com/webino/WebinoDbDump) | Learn [Develop](https://github.com/webino/Webino/wiki/How-to-develop-Webino-module)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

Unknown

Total

1

Last Release

3688d ago

### Community

Maintainers

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

---

Top Contributors

[![bacinsky](https://avatars.githubusercontent.com/u/3078875?v=4)](https://github.com/bacinsky "bacinsky (46 commits)")

---

Tags

databasedumpframeworkmodulev2webinowipzendframeworkdatabasedumpzenddbzf2webino

### Embed Badge

![Health badge](/badges/webino-webino-dbdump/health.svg)

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

###  Alternatives

[webino/webino-image-thumb

Image Thumbnailer for Zend Framework 2

4079.0k](/packages/webino-webino-image-thumb)

PHPackages © 2026

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