PHPackages                             tremby/laravel-db-shell-command - 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. tremby/laravel-db-shell-command

ActiveLibrary

tremby/laravel-db-shell-command
===============================

Add a db:shell command to Laravel which runs a shell for a configured database connection

v2.1(10y ago)01.8k[1 issues](https://github.com/tremby/laravel-db-shell-command/issues)MITPHPCI failing

Since Mar 3Pushed 5y ago1 watchersCompare

[ Source](https://github.com/tremby/laravel-db-shell-command)[ Packagist](https://packagist.org/packages/tremby/laravel-db-shell-command)[ RSS](/packages/tremby-laravel-db-shell-command/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (7)Used By (0)

Database shell command
======================

[](#database-shell-command)

Add an Artisan command, `db:shell`, which invokes a database shell on a configured database connection.

Binaries for the various database shells are expected to be in your path.

Laravel version
---------------

[](#laravel-version)

This branch and the `v2.*` line of tags are for Laravel 5. For the Laravel 4 version [see the laravel4 branch](https://github.com/tremby/laravel-db-shell-command/tree/laravel4) and the `v1.*` line of tags.

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

[](#installation)

Require it in your Laravel project:

```
composer require tremby/laravel-db-shell-command

```

Register the service provider in your `config/app.php` file:

```
'providers' => [
    ...
    Tremby\DbShellCommand\ServiceProvider::class,
],

```

Use
---

[](#use)

A new Artisan command is added; it will be listed in

```
./artisan list

```

See the help text for options:

```
./artisan db:shell --help

```

To launch a shell for the application's default database (in the current environment), just run

```
./artisan db:shell

```

Supported database drivers
--------------------------

[](#supported-database-drivers)

- mysql

Pull requests are welcome for others.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity67

Established project with proven stability

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

Total

4

Last Release

3922d ago

Major Versions

v0.1 → v1.02015-06-18

v1.0 → v2.02015-06-18

### Community

Maintainers

![](https://www.gravatar.com/avatar/0369334bd5956ec9b5cf3262d671bef2d24b642e6a22ff153308bb1d0eb128c5?d=identicon)[tremby](/maintainers/tremby)

---

Top Contributors

[![tremby](https://avatars.githubusercontent.com/u/199635?v=4)](https://github.com/tremby "tremby (9 commits)")

### Embed Badge

![Health badge](/badges/tremby-laravel-db-shell-command/health.svg)

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

###  Alternatives

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11320.2M21](/packages/anourvalar-eloquent-serialize)[namu/wirechat

A Laravel Livewire messaging app for teams with private chats and group conversations.

54324.5k](/packages/namu-wirechat)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135192.6k5](/packages/statamic-rad-pack-runway)

PHPackages © 2026

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