https://github.com/z-song/db-console
A Database Console
https://github.com/z-song/db-console
Last synced: about 2 months ago
JSON representation
A Database Console
- Host: GitHub
- URL: https://github.com/z-song/db-console
- Owner: z-song
- Created: 2015-11-23T10:52:29.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-27T10:55:04.000Z (over 9 years ago)
- Last Synced: 2025-03-25T22:36:23.525Z (2 months ago)
- Language: PHP
- Size: 33.2 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#DB Console
DB Console is a database console with support for `Mysql`, `Sqlite`, `Mongodb` and `Redis`.
## Screenshots
Mysql:
MongoDB:

Redis:

## Installation
```sh
composer require encore/dbconsole --dev
```## Configuration
See [database.php](https://github.com/z-song/db-console/blob/master/config/database.php).
## Usage
```php
setConnection('redis');$shell->run();
```
And run this script in your console.
## Work with Laravel
When use in `Laravel`, it will use the database configuration in application.
Add service provider to `config/app.php` in `providers` section:
```php
Encore\Dbconsole\Providers\LaravelServiceProvider::class
```then run `DB Console` with:
```sh
php artisan db:console
```