PHPackages                             mayconbordin/l5-db-commands - 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. mayconbordin/l5-db-commands

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

mayconbordin/l5-db-commands
===========================

A set of commands to create/drop/dump/restore databases on Laravel 5

v1.1(8y ago)51.0k2MITPHPPHP &gt;=5.4.0

Since Jan 2Pushed 8y ago2 watchersCompare

[ Source](https://github.com/mayconbordin/l5-db-commands)[ Packagist](https://packagist.org/packages/mayconbordin/l5-db-commands)[ Docs](https://github.com/mayconbordin/l5-db-commands)[ RSS](/packages/mayconbordin-l5-db-commands/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

l5-db-commands
==============

[](#l5-db-commands)

[![Latest Stable Version](https://camo.githubusercontent.com/e68893f2798c7673f1b7ce29be0314314d7fd509000d9290aa3743305d6f34dd/68747470733a2f2f706f7365722e707567782e6f72672f6d6179636f6e626f7264696e2f6c352d64622d636f6d6d616e64732f76657273696f6e)](https://packagist.org/packages/mayconbordin/l5-db-commands) [![Total Downloads](https://camo.githubusercontent.com/a97e3c583d382f01e64572dbdc4f427343fd19ca7488617f2e4bc69a0e6c3f6c/68747470733a2f2f706f7365722e707567782e6f72672f6d6179636f6e626f7264696e2f6c352d64622d636f6d6d616e64732f646f776e6c6f616473)](https://packagist.org/packages/mayconbordin/l5-db-commands) [![Latest Unstable Version](https://camo.githubusercontent.com/431bee3d31b9c26b6ab1f163ad0422fe4a55fbf1047902dac307bcd7ab20beef/68747470733a2f2f706f7365722e707567782e6f72672f6d6179636f6e626f7264696e2f6c352d64622d636f6d6d616e64732f762f756e737461626c65)](//packagist.org/packages/mayconbordin/l5-db-commands) [![License](https://camo.githubusercontent.com/4c265891e4b55809e2d1615a21e328fbb26d92c7aab8b0d695797dc5fe2c9e0f/68747470733a2f2f706f7365722e707567782e6f72672f6d6179636f6e626f7264696e2f6c352d64622d636f6d6d616e64732f6c6963656e7365)](https://packagist.org/packages/mayconbordin/l5-db-commands)

A set of commands to create/drop/dump/restore/shell databases on Laravel 5.

**Supported DBMSs**: MySQL, PostgreSQL and SQLite.

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

[](#installation)

In order to install just add

```
"mayconbordin/l5-db-commands": "dev-master"
```

to your composer.json. Then run `composer install` or `composer update`.

Then in your `config/app.php` add

```
'Mayconbordin\DbCommands\DbCommandsServiceProvider'
```

in the `providers` array.

Commands
--------

[](#commands)

#### `db:create [options]`

[](#dbcreate-options)

Create a new database with the default connection from the configuration file.

*Options*:

- `--database`: The name of the database connection in the configuration file.

#### `db:drop [options]`

[](#dbdrop-options)

Drop an existing database with the default connection from the configuration file.

*Options*:

- `--database`: The name of the database connection in the configuration file.

#### `db:dump [options] [--] []`

[](#dbdump-options----output)

Dump the schema and data of an existing database with the default connection from the configuration file. By default the dump is printed on the screen, optionally it can be written to ``.

*Options*:

- `--database`: The name of the database connection in the configuration file.
- `--data-only`: Dumps only the data.

#### `db:restore [options] [--] `

[](#dbrestore-options----dump-file)

Restore the schema and data from `` to an existing database with the default connection from the configuration file.

*Options*:

- `--database`: The name of the database connection in the configuration file.

#### `db:shell [options]`

[](#dbshell-options)

Open a shell to an existing database with the default connection from the configuration file.

> For PostgreSQL you might have to create a `~/.pgpass` file with `localhost:5432:mydbname:postgres:mypass` and chmod 600.

*Options*:

- `--database`: The name of the database connection in the configuration file.

#### `db:exec:sql [options] [--] `

[](#dbexecsql-options----file)

Execute SQL file from `` to an existing database with the default connection from the configuration file.

*Options*:

- `--database`: The name of the database connection in the configuration file.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

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

Total

2

Last Release

3171d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/42528727c83dd30f55c2a01ced50c7f22aeaf5a0bf83503d862e15448733a81a?d=identicon)[mayconbordin](/maintainers/mayconbordin)

---

Top Contributors

[![mayconbordin](https://avatars.githubusercontent.com/u/597104?v=4)](https://github.com/mayconbordin "mayconbordin (18 commits)")

---

Tags

laraveldatabaselaravel 5commmands

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mayconbordin-l5-db-commands/health.svg)

```
[![Health](https://phpackages.com/badges/mayconbordin-l5-db-commands/health.svg)](https://phpackages.com/packages/mayconbordin-l5-db-commands)
```

###  Alternatives

[cybercog/laravel-clickhouse

ClickHouse migrations for Laravel

163166.8k](/packages/cybercog-laravel-clickhouse)[toponepercent/baum

Baum is an implementation of the Nested Set pattern for Eloquent models.

3154.7k](/packages/toponepercent-baum)

PHPackages © 2026

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