PHPackages                             srimaln91/sql-dumper - 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. [CLI &amp; Console](/categories/cli)
4. /
5. srimaln91/sql-dumper

ActiveLibrary[CLI &amp; Console](/categories/cli)

srimaln91/sql-dumper
====================

A PHP console application to execute batch of shell commands to versioning wordpress database and source code

1.2.8(8y ago)83.1k2[3 issues](https://github.com/srimaln91/sql-dumper/issues)[1 PRs](https://github.com/srimaln91/sql-dumper/pulls)GPLPHP

Since Sep 29Pushed 7y ago1 watchersCompare

[ Source](https://github.com/srimaln91/sql-dumper)[ Packagist](https://packagist.org/packages/srimaln91/sql-dumper)[ RSS](/packages/srimaln91-sql-dumper/feed)WikiDiscussions master Synced today

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

SQL Dumper
==========

[](#sql-dumper)

A PHP command line application to dump databases into your source code. This can be very useful if you need to version control your database along with the source code.

Getting Started
---------------

[](#getting-started)

This package is available on packagist. You can use following commands to add this package into your composer dev dependancies.

` composer require srimaln91/sql-dumper --dev`

### Prerequisites

[](#prerequisites)

You need to have mysql and mysqldump binaries installed on your system. This package uses native mysql binaries to create and restore dumps.

### Installing

[](#installing)

Please follow below steps to configure this application.

` composer require srimaln91/sql-dumper --dev`

### Configuration

[](#configuration)

You need to create a config.yml file in your project root. Below is the default config file.

```
---
database:
  hostname: localhost
  database: xxxxx
  username: xxxxx
  password: xxx
  port: 3306
binaries:
  mysql: "/usr/bin/mysql"
  git: "/usr/bin/git"
directory:
  db: "/path/to/your/dump/directory/"

```

How to generate a database dump
-------------------------------

[](#how-to-generate-a-database-dump)

You can execute below command to create a new dump or update an existing dump directory

`vendor/bin/application db:dump`

### How to restore a database dump

[](#how-to-restore-a-database-dump)

Please use below command

```
vendor/bin/application db:restore

```

Authors
-------

[](#authors)

- **Srimal Nishantha** - [GitHub](https://github.com/srimaln91)

See also the list of [contributors](https://github.com/srimaln91/sql-dumper/graphs/contributors) who participated in this project.

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity70

Established project with proven stability

 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

Every ~0 days

Total

11

Last Release

3192d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12408789?v=4)[Srimal Nishantha](/maintainers/srimaln91)[@srimaln91](https://github.com/srimaln91)

---

Top Contributors

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

---

Tags

database-backupdatabase-dumpdatabase-version-control

### Embed Badge

![Health badge](/badges/srimaln91-sql-dumper/health.svg)

```
[![Health](https://phpackages.com/badges/srimaln91-sql-dumper/health.svg)](https://phpackages.com/packages/srimaln91-sql-dumper)
```

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.6k38.2k](/packages/matomo-matomo)[jolicode/castor

A lightweight and modern task runner. Automate everything. In PHP.

54642.4k4](/packages/jolicode-castor)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19664.8M1.6k](/packages/drupal-core)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M196](/packages/sulu-sulu)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6941.5M396](/packages/drupal-core-recommended)[kimai/kimai

Kimai - Time Tracking

4.8k8.7k1](/packages/kimai-kimai)

PHPackages © 2026

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