PHPackages                             amanatjuwel/db-dump - 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. amanatjuwel/db-dump

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

amanatjuwel/db-dump
===================

Dump the contents of a database

03HTML

Since Aug 20Pushed 6y ago1 watchersCompare

[ Source](https://github.com/amanat-juwel/db-dump)[ Packagist](https://packagist.org/packages/amanatjuwel/db-dump)[ RSS](/packages/amanatjuwel-db-dump/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Dump the contents of a database
-------------------------------

[](#dump-the-contents-of-a-database)

This repo contains an easy to use to dump a database using PHP. Currently MySQL is supported.

Requirements
------------

[](#requirements)

For dumping MySQL-db's mysqldump should be installed.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require amanatjuwel/db-dump

```

### Laravel 5.x:

[](#laravel-5x)

After updating composer, add the ServiceProvider to the providers array in config/app.php

```
Amanatjuwel\DbDump\DbDumpServiceProvider::class,

```

### Configuration

[](#configuration)

```
php artisan vendor:publish --provider="Amanatjuwel\DbDump\DbDumpServiceProvider"

```

This command will publish a config file in 'config/db-dump.php' and views in "resources/views/" folder named "vendor/db-dump/index.blade.php" with basic bootstrap css and fontawsome css.

Config your database in .env

```
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=xxxxxxxxxxx
DB_USERNAME=root
DB_PASSWORD=xxxx

```

Usage
-----

[](#usage)

### Environment

[](#environment)

for localhost

```
from .env set APP_ENV=local

from 'config/db-dump.php' set "mysqldump_path" = "PATH_TO_MYSQLDUMP"

```

for server

```
from .env set APP_ENV=production

```

### Endpoints

[](#endpoints)

index

```
GET localhost:8000/database-backup

```

create a backup

```
GET localhost:8000/database-backup/create

```

delete a backup

```
POST localhost:8000/database-backup/delete

```

### License

[](#license)

This Contact Us From Pakage for Laravel is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 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/622a3105aa1bbafbd6a145a0df5463485c1eea7029708e038996de0a641d1005?d=identicon)[amanat-juwel](/maintainers/amanat-juwel)

---

Top Contributors

[![amanat-juwel](https://avatars.githubusercontent.com/u/23531263?v=4)](https://github.com/amanat-juwel "amanat-juwel (5 commits)")

### Embed Badge

![Health badge](/badges/amanatjuwel-db-dump/health.svg)

```
[![Health](https://phpackages.com/badges/amanatjuwel-db-dump/health.svg)](https://phpackages.com/packages/amanatjuwel-db-dump)
```

###  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.3k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M545](/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)
