PHPackages                             portable/laravel-db-tools - 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. portable/laravel-db-tools

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

portable/laravel-db-tools
=========================

Database import and export for Artisan

v1.0.1(3y ago)010.9k1MITPHP

Since Mar 16Pushed 3y ago2 watchersCompare

[ Source](https://github.com/PortableStudios/laravel-db-tools)[ Packagist](https://packagist.org/packages/portable/laravel-db-tools)[ RSS](/packages/portable-laravel-db-tools/feed)WikiDiscussions main Synced today

READMEChangelog (1)DependenciesVersions (4)Used By (1)

Laravel DB Tools
================

[](#laravel-db-tools)

Laravel's Artisan is great and one of the strengths of the framework is how database agnostic almost everything is. Except database dumps. And imports.

This package attempts to help cover that gap and provides:

`php artisan db:export ?--compressed ?--command-only {filename}`Export the database to the file given by filename (autogenerated if not provided) using the database native CLI tools (e.g pg\_dump ). If pv is installed in the environment, a progress bar will be shown.

`php artisan db:import ?--compressed ?--command-only ?--drop {filename}`Import the database given by filename using the database native CLI tools (e.g psql). If --drop specified, drops and re-creates the database prior to import. If pv is installed in the environment, a progress bar will be shown.

For both commands, --command-only will echo the command that would be run, but doesn't execute it.

If compressed is specified, uses gzip and gunzip to compress data - useful if you're transporting the output.

If you attempt to run the commands in production, issues a warning and asks for confirmation before continuing.

Currently, only postgres and mySQL adapters are supported. PRs for additional database drivers would be welcome.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity48

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

Every ~0 days

Total

2

Last Release

1241d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c82b610b5fb1b52cd981e56d04a4841eb5a54ff428795d1f38e9ac5271ba7b09?d=identicon)[kyoung\_portable](/maintainers/kyoung_portable)

![](https://www.gravatar.com/avatar/5f40f1b240a9079c17c193bfa2c6ad97b735adac3102f12774d8af60f90771dd?d=identicon)[n.rogers.portable](/maintainers/n.rogers.portable)

---

Top Contributors

[![kyoungportable](https://avatars.githubusercontent.com/u/111816258?v=4)](https://github.com/kyoungportable "kyoungportable (8 commits)")

### Embed Badge

![Health badge](/badges/portable-laravel-db-tools/health.svg)

```
[![Health](https://phpackages.com/badges/portable-laravel-db-tools/health.svg)](https://phpackages.com/packages/portable-laravel-db-tools)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.8k117.8M121](/packages/jdorn-sql-formatter)[backup-manager/backup-manager

A framework agnostic database backup manager with user-definable procedures and support for S3, Dropbox, FTP, SFTP, and more with drivers for popular frameworks.

1.7k1.6M11](/packages/backup-manager-backup-manager)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M88](/packages/propel-propel1)[insolita/yii2-migration-generator

Set of gii tools for generating files for migration by schema of table , phpdoc or table data

108508.0k5](/packages/insolita-yii2-migration-generator)[xpdo/xpdo

A PDO-based Object/Relational Bridge Library

7088.4k4](/packages/xpdo-xpdo)[voku/session2db

A PHP library acting as a wrapper for PHP's default session handling functions which stores data in a MySQL database, providing both better performance and better security and protection against session fixation and session hijacking.

3220.0k](/packages/voku-session2db)

PHPackages © 2026

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