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

0664PHP

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 today

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 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

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://www.gravatar.com/avatar/19c4d35e3130cd8ae3d37abde126477701caed9cc0435519fe39e13a278a9c8b?d=identicon)[ksarien](/maintainers/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

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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