PHPackages                             julianpitt/dbmanager - 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. julianpitt/dbmanager

ActiveLibrary

julianpitt/dbmanager
====================

A highly configurable database backup and restore solution for laravel projects

1.0.3.4(10y ago)0208MITPHPPHP &gt;=5.3.0

Since Jan 18Pushed 10y ago1 watchersCompare

[ Source](https://github.com/julianpitt/dbmanager)[ Packagist](https://packagist.org/packages/julianpitt/dbmanager)[ Docs](https://github.com/julianpitt/dbmanager)[ RSS](/packages/julianpitt-dbmanager/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (7)Dependencies (3)Versions (9)Used By (0)

Laravel Database Manager
========================

[](#laravel-database-manager)

A highly configurable database backup and restore solution for laravel 5 projects

Install
-------

[](#install)

Via Composer

```
$ composer require julianpitt/dbmanager
```

Add the service provider to your config/app.php file's provider array

```
...
    'JulianPitt\DBManager\DBManagerServiceProvider',
...
```

Then publish the config after you update composer

```
$ php artisan vendor:publish --provider="JulianPitt\DBManager\DBManagerServiceProvider" --tag="public"
```

Usage
-----

[](#usage)

\###Console

For backups

```
php artisan dbman:backup
```

For restores ( currently in development )

```
php artisan dbman:restore
```

\###File

```
DBManager::hasPermission( {filesystem name} );
DBManager::backup();
DBManager::backup( {options array} );
```

\##Config

### Backup

[](#backup)

#### Defaults

[](#defaults)

```
prefix              => 'datetime'
suffix              => ''
filename            => '-db-manager'
compress            => true
keeplastonly        => false
filesystem          => "local"
location            => "/backups/"
useExtendedInsert   => true
timeoutInSeconds    => 60
tables              => ""
backupType          => "dataandstructure"
'individualFiles'   => env('DBMAN_OUTPUT_INDIVIDUAL', false),
'checkPermissions'  => env('DBMAN_CHECK_PERMISSIONS', true),
'failsafeEnabled'   =>  env('DBMAN_OUTPUT_FAILSAFE', true),
'failsafe'          => [
		'location'          => '/dbmanager/',
		'filesystem'        => 'local'
    ]

```

#### Options

[](#options)

```
  -p    --prefix=PREFIX                      The name of the file will get prefixed with this string.
  -s    --suffix=SUFFIX                      The name of the file will get suffixed with this string.
  -f    --filename=FILENAME                  The name of the file to output.
  -t    --type=TYPE                          The type of dump to perform on the database ("datanadstructure/dataonly/structureonly)
  -k    --keeplastonly=KEEPLASTONLY          Keep the last backup or delete all previous backups (true/false)
  -c    --compress=COMPRESS                  Compress the output file to .zip (true/false)
  -d    --checkPermissions=CHECKPERMISSIONS  Enable an initial check to see if the backup will run correctly [default: true]
  -b    --failsafeEnabled=FAILSAFEENABLED    Save a full backup in the failsafe location when performing a backup on some tables only [default: true]
  -i    --individual=INDIVIDUAL              Save each table to an individual file [default: false]
```

#### .env

[](#env)

The following values can be changed inside your .env file

```
 DBMAN_OUTPUT_COMPRESS      - compress (boolean)[true|false]
 DBMAN_OUTPUT_KEEPLASTONLY  - keeplastonly (boolean)[true|false]
 DBMAN_OUTPUT_FILESYSTEM    - filesystem (string or array) e.g ['local','aws'] or 'local'
 DBMAN_OUTPUT_LOCATION      - location (string) e.g '/backups/'
 DBMAN_OUTPUT_TABLES        - tables (string) e.g 'laravel' or '' for the whole database
 DBMAN_OUTPUT_BACKUPTYPE    - backupType (string) [dataonly|structureonly|dataandstructure]
 DBMAN_CHECK_PERMISSIONS    - checkPermissions (boolean)[true|false]
 DBMAN_OUTPUT_FAILSAFE      - failsafeEnabled (boolean)[true|false]
 DBMAN_OUTPUT_INDIVIDUAL    - individualFiles (boolean)[true|false]
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- Julian Pittas

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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 ~6 days

Total

8

Last Release

3727d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7278eff5f8a1f0ee61ec9a713297b1467499b44bebc98e0133b29d0d078aabcd?d=identicon)[julianpitt](/maintainers/julianpitt)

---

Top Contributors

[![julianpitt](https://avatars.githubusercontent.com/u/8890146?v=4)](https://github.com/julianpitt "julianpitt (22 commits)")

---

Tags

dbmanagerLaravelDatabaseManagerjulianpitt

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/julianpitt-dbmanager/health.svg)

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

###  Alternatives

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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