PHPackages                             climba-commerce/mysql-dump - 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. climba-commerce/mysql-dump

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

climba-commerce/mysql-dump
==========================

MySQL database dump.

v1.0.3(1y ago)07.1k↓59.2%1BSD-3-ClausePHPPHP &gt;=7.1

Since Sep 12Pushed 1y agoCompare

[ Source](https://github.com/Climba-Commerce/MySQL-dump)[ Packagist](https://packagist.org/packages/climba-commerce/mysql-dump)[ Docs](https://github.com/dg/MySQL-dump)[ RSS](/packages/climba-commerce-mysql-dump/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

MySQL Dump Utility
==================

[](#mysql-dump-utility)

This is a backup utility used to dump a database for backup or transfer to another MySQL server. The dump typically contains SQL statements to create the table, populate it, or both.

It requires PHP 5.6 (release 1.5) or PHP 7.1 or later.

Install
-------

[](#install)

```
composer require climba-commerce/mysql-dump

```

Usage
-----

[](#usage)

Create [MySQLi](http://www.php.net/manual/en/mysqli.construct.php) object and pass it to the MySQLDump:

```
$db = new mysqli('localhost', 'root', 'password', 'database');
$dump = new MySQLDump($db);
```

You can optionally specify how each table or view should be exported:

```
$dump->tables['search_cache'] = MySQLDump::DROP | MySQLDump::CREATE;
$dump->tables['log'] = MySQLDump::NONE;
```

Then simply call `save()` or `write()`:

```
$dump->save('export.sql.gz');
```

Import dump from file to database this way:

```
$import = new MySQLImport($db);
$import->load('dump.sql.gz');
```

To run tests, execute:

```
composer run test

```

Now you can mask data on tables, use this way with IMaskInterface:

```
$dump->addMask('users', 'email', IMaskInterface);
```

If you like it, **[please make a donation now](https://nette.org/make-donation?to=mysql-dump)**. Thank you!

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance49

Moderate activity, may be stable

Popularity23

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 64.1% 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 ~216 days

Total

4

Last Release

375d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/23357903?v=4)[Climba Commerce](/maintainers/idealizetecnologia)[@idealizetecnologia](https://github.com/idealizetecnologia)

---

Top Contributors

[![dg](https://avatars.githubusercontent.com/u/194960?v=4)](https://github.com/dg "dg (25 commits)")[![JanTvrdik](https://avatars.githubusercontent.com/u/175109?v=4)](https://github.com/JanTvrdik "JanTvrdik (7 commits)")[![Jhon-Henkel](https://avatars.githubusercontent.com/u/96666648?v=4)](https://github.com/Jhon-Henkel "Jhon-Henkel (3 commits)")[![jakubvokoun](https://avatars.githubusercontent.com/u/14090004?v=4)](https://github.com/jakubvokoun "jakubvokoun (1 commits)")[![idealizetecnologia](https://avatars.githubusercontent.com/u/23357903?v=4)](https://github.com/idealizetecnologia "idealizetecnologia (1 commits)")[![VaclavSir](https://avatars.githubusercontent.com/u/1473642?v=4)](https://github.com/VaclavSir "VaclavSir (1 commits)")[![ViniciusDuranteBagio](https://avatars.githubusercontent.com/u/88693025?v=4)](https://github.com/ViniciusDuranteBagio "ViniciusDuranteBagio (1 commits)")

---

Tags

mysql

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/climba-commerce-mysql-dump/health.svg)

```
[![Health](https://phpackages.com/badges/climba-commerce-mysql-dump/health.svg)](https://phpackages.com/packages/climba-commerce-mysql-dump)
```

###  Alternatives

[doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.

9.7k605.0M6.8k](/packages/doctrine-dbal)[kirschbaum-development/eloquent-power-joins

The Laravel magic applied to joins.

1.6k32.6M46](/packages/kirschbaum-development-eloquent-power-joins)[scienta/doctrine-json-functions

A set of extensions to Doctrine that add support for json query functions.

58825.9M54](/packages/scienta-doctrine-json-functions)[cytopia/mysqldump-secure

Secure mysqldump script with encryption, compression, logging, blacklisting and Nagios monitoring integration

1474.7k1](/packages/cytopia-mysqldump-secure)[ark/database

Light weight database abstraction

117.8k](/packages/ark-database)

PHPackages © 2026

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