PHPackages                             danilocgsilva/backupphp - 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. danilocgsilva/backupphp

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

danilocgsilva/backupphp
=======================

Generates a sql file entirely trough php code

1.2.3(8y ago)243MITPHPPHP ~5.4 | ^7.0

Since Jan 14Pushed 8y ago2 watchersCompare

[ Source](https://github.com/danilocgsilva/Backupphp)[ Packagist](https://packagist.org/packages/danilocgsilva/backupphp)[ Docs](https://github.com/danilocgsilva/Backupphp)[ RSS](/packages/danilocgsilva-backupphp/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (45)Used By (0)

Backupphp
=========

[](#backupphp)

Generates a sql backup entirely by php code

Install
-------

[](#install)

```
composer require danilocgsilva/backupphp

```

Usage
-----

[](#usage)

Once you've installed the package in your project, just call:

```
\Danilocgsilva\Backupphp::backup('mysql_host', 'mysql_user', 'database_name', 'password', 'full_server_path_to_store_sql_files', (optional)'database_prefix', (optional)'database_encoding');
```

Security Notice
---------------

[](#security-notice)

There's no security checkings after the backup method is called! It was thought out to serve as an api function, so after entering the parameters in the `backup()` method, you must make your own security filtering.

Where it was already successfully tested
----------------------------------------

[](#where-it-was-already-successfully-tested)

1. Recovering a basic WordPress database.
2. Recovering a 60mb database serving several system, including some wordpresses and drupal installations. Not tested the systems after restoring, but that was no error on restoring.

ToDo
----

[](#todo)

Provides a csrf\_token to put some security in html forms.

###  Health Score

31

—

LowBetter than 65% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity71

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

43

Last Release

3128d ago

Major Versions

0.0.36 → 1.0.02018-01-17

PHP version history (3 changes)1.1.0PHP ^5.4

1.2.1PHP ~5.4

1.2.2PHP ~5.4 | ^7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6614760?v=4)[Danilo Carlos de Góes Silva](/maintainers/danilocgsilva)[@danilocgsilva](https://github.com/danilocgsilva)

---

Top Contributors

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

---

Tags

backupmysql

### Embed Badge

![Health badge](/badges/danilocgsilva-backupphp/health.svg)

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

###  Alternatives

[phpbu/phpbu

PHP Backup utility.

1.3k97.7k4](/packages/phpbu-phpbu)[rah/danpu

Zero-dependency MySQL dump library for easily exporting and importing databases

62416.0k12](/packages/rah-danpu)[cytopia/mysqldump-secure

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

1484.7k1](/packages/cytopia-mysqldump-secure)

PHPackages © 2026

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