PHPackages                             ccn/sqldump - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ccn/sqldump

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ccn/sqldump
===========

Simple sql dump utility.

05PHP

Since Apr 30Pushed 9y ago1 watchersCompare

[ Source](https://github.com/CarlosCardenasNegro/sqldump)[ Packagist](https://packagist.org/packages/ccn/sqldump)[ RSS](/packages/ccn-sqldump/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Simple utility to dump a MySQL database
=======================================

[](#simple-utility-to-dump-a-mysql-database)

This is a simple utility that make a dump of a selected database to a text file containts the sql code and the data to recreate the database.

The sql text file should include the table structure the complete data and the indexes.

It don't dump Views, Stored procedures and so... because it's very simple, but it do his job.

It require and use `monolog` to export messages, error, and so...

Usage
-----

[](#usage)

It's so simple. Create a instance of the class passing a `\PDO` instance and a `monolog` instance.

And execute his `dumpSQL` method `$example->dumpSQL([$filename])`. The filename it's optional (it default to 'Dump.sql')

The other methods can be used also to extract only tables, fields anda data and so,... if you want.

```
$dumpTest = new sqlDump\sqlDump($pdo, $logger);
echo $dumpTest->dumpSQL();
```

###  Health Score

20

—

LowBetter than 13% 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/8d7e7c49da8c20949be64e316a111ffa490fdc7cd146d935e89ad2f0d3aac717?d=identicon)[Carlos Cardenas Negro](/maintainers/Carlos%20Cardenas%20Negro)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/ccn-sqldump/health.svg)

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

###  Alternatives

[hyperf/nano

Scale Hyperf application down to a single file

43313.8k2](/packages/hyperf-nano)[mage-os/module-theme-optimization

Page transitions and speculative loading rules for Magento

4115.8k](/packages/mage-os-module-theme-optimization)

PHPackages © 2026

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