PHPackages                             iamjohndev/ijd-ezbackup - 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. iamjohndev/ijd-ezbackup

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

iamjohndev/ijd-ezbackup
=======================

A simple and lightweight PHP library for backing up MySQL database.

1.0.0(3y ago)05MITPHPPHP ^8.0

Since May 11Pushed 3y ago1 watchersCompare

[ Source](https://github.com/PseudoDevs/IamJohnDevEZBackup)[ Packagist](https://packagist.org/packages/iamjohndev/ijd-ezbackup)[ RSS](/packages/iamjohndev-ijd-ezbackup/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

EZBackup - PHP Class Library
============================

[](#ezbackup---php-class-library)

**EZBackup** is a PHP class library for backing up and restoring MySQL databases to/from **CSV**, **JSON**, and **XLS** files.

### Installation

[](#installation)

You can install **EZBackup** via **Composer**. If you're not familiar with Composer, you can learn more about it [here](https://getcomposer.org/doc/00-intro.md "here").

First, make sure you have Composer installed on your machine. You can download and install Composer from [here.](https://getcomposer.org/doc/00-intro.md "here.")

Next, navigate to your project directory in the terminal/command prompt.

Run the following command to install **EZBackup** and its dependencies:

```
    composer require iamjohndev/ijd-ezbackup
```

Once **Composer** has finished installing the library, you can start using it in your project.

### Usage

[](#usage)

To use **EZBackup**, you'll first need to create an instance of the **BackupAndRestore** class and set its configuration. Here's an example:

```
use IamJohnDevEZBackup\BackupAndRestore;

// Create a new BackupAndRestore object
$backup = new BackupAndRestore();

// Set the database configuration
$backup->setConfig('localhost', 'username', 'password', 'database', 'path/to/export_file', 'path/to/import_file');
```

Once you`ve set the configuration, you can call any of the available backup/restore methods:

```
// Backup the database to a CSV file
$backup->backupToCSV();

// Backup the database to a JSON file
$backup->backupToJSON();

// Backup the database to an XLS file
$backup->backupToXLS();

// Restore the database from a CSV file
$backup->restoreFromCSV($_FILES['csv_file']);

// Restore the database from a JSON file
$backup->restoreFromJSON($_FILES['json_file']);

// Restore the database from an XLS file
$backup->restoreFromXLS($_FILES['xls_file']);
```

License
=======

[](#license)

**EZBackup** is open-sourced software licensed under the[ **MIT license.**](https://opensource.org/licenses/MIT " **MIT license.**")

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1096d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ac66619338aacab90850c8110820e48f5f9d52b917bf7eb317b4e15e63ef8cbc?d=identicon)[PseudoDevs](/maintainers/PseudoDevs)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/iamjohndev-ijd-ezbackup/health.svg)

```
[![Health](https://phpackages.com/badges/iamjohndev-ijd-ezbackup/health.svg)](https://phpackages.com/packages/iamjohndev-ijd-ezbackup)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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