PHPackages                             devphp-pmro/backupsql - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. devphp-pmro/backupsql

ActiveLibrary[File &amp; Storage](/categories/file-storage)

devphp-pmro/backupsql
=====================

backup your tables in mysql in an easy and simplified way

1.0.2(5y ago)044MITPHP

Since Oct 5Pushed 5y ago1 watchersCompare

[ Source](https://github.com/devphp-pmro/backupsql)[ Packagist](https://packagist.org/packages/devphp-pmro/backupsql)[ RSS](/packages/devphp-pmro-backupsql/feed)WikiDiscussions master Synced 1w ago

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

BackupBd library backup using MySQLBackup
=========================================

[](#backupbd-library-backup-using-mysqlbackup)

To install the library, run the following command:

```
composer require devphp-pmro/backupsql
```

To use the library, simply require the composer to autoload, invoke the class and call the method:

```
 "host,
                "user" => "user",
                "password" => "password",
                "data_base" => "data_base",
                "port"=> "port"]);

default port 3306

// compress or download in method contruct is optional

require __DIR__. '/vendor-dir/autoload.php';

use Source\BackupSql;

$bk = new BackupSql($fileName, true, "zip",true); // new instance

$fileName = 'backup'.date('Y-m-d'); //the file name in the building method is mandatory

$bk->createSelectTables(["table_name","table_name1"]); //insert the table numbers to be backed up

$bk = new BackupSql($fileName, true, "zip",true); // new instance

$bk->createAllTables(); //all tables

// compress = zip | gz | gzip (optional)

// download true or false

if deleteFile is false the file will be saved in the folder where the class was instantiated, so if you want the file not to be automatically saved, put deleteFile true and download as true

```

### Developers

[](#developers)

- \[Leonardo\] - Developer of this library!
- \[devphp\] - Official website:
- \[MySQLBackup\] - Lib to backup mysql

License
-------

[](#license)

MIT

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.3% 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

3

Last Release

2050d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1d4b642c027650ed8f7cf3ad1fb0736f7c740f75c47288601daf0c15d54fbd52?d=identicon)[devphp.pmro](/maintainers/devphp.pmro)

---

Top Contributors

[![devphp-pmro](https://avatars.githubusercontent.com/u/68509473?v=4)](https://github.com/devphp-pmro "devphp-pmro (14 commits)")[![leo-pmro](https://avatars.githubusercontent.com/u/46794609?v=4)](https://github.com/leo-pmro "leo-pmro (1 commits)")

### Embed Badge

![Health badge](/badges/devphp-pmro-backupsql/health.svg)

```
[![Health](https://phpackages.com/badges/devphp-pmro-backupsql/health.svg)](https://phpackages.com/packages/devphp-pmro-backupsql)
```

###  Alternatives

[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[superbalist/flysystem-google-storage

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[illuminate/filesystem

The Illuminate Filesystem package.

15161.6M2.6k](/packages/illuminate-filesystem)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M62](/packages/creocoder-yii2-flysystem)[flowjs/flow-php-server

PHP library for handling chunk uploads. Works with flow.js html5 file uploads.

2451.6M15](/packages/flowjs-flow-php-server)[madnest/madzipper

Easier zip file handling for Laravel applications.

1382.3M6](/packages/madnest-madzipper)

PHPackages © 2026

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