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

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

ksarien/l5-db-commands
======================

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

0672PHP

Since Sep 4Pushed 8y ago1 watchersCompare

[ Source](https://github.com/ksarien/l5-db-commands)[ Packagist](https://packagist.org/packages/ksarien/l5-db-commands)[ RSS](/packages/ksarien-l5-db-commands/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#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.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 61.5% 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://avatars.githubusercontent.com/u/694008?v=4)[Ksarien](/maintainers/ksarien)[@ksarien](https://github.com/ksarien)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k116.5M113](/packages/jdorn-sql-formatter)[propel/propel1

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

8351.6M87](/packages/propel-propel1)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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