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

ActiveLibrary

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

Database import and export for Artisan

v1.0.1(3y ago)09.5k↓100%MITPHP

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 (0)

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

27

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity46

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

1102d 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)
```

PHPackages © 2026

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