Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/z-song/db-console
A Database Console
https://github.com/z-song/db-console
Last synced: 30 days 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 (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-27T10:55:04.000Z (about 9 years ago)
- Last Synced: 2024-10-20T18:29:56.020Z (2 months ago)
- Language: PHP
- Size: 33.2 KB
- Stars: 5
- Watchers: 3
- 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:![ff11be54-5cc8-4790-876b-a4950d00fe32](https://cloud.githubusercontent.com/assets/1479100/11439445/715a479e-9536-11e5-9c40-35fb13160b38.png)
MongoDB:
![9e0543f3-c44b-44a9-9419-9d55da21c540](https://cloud.githubusercontent.com/assets/1479100/11439473/9b2c102a-9536-11e5-8ae6-c8a09fc54a3f.png)
Redis:
![51a07cbe-089e-428b-a1a3-01bc47da4207](https://cloud.githubusercontent.com/assets/1479100/11439470/9838351a-9536-11e5-9344-e4df446575b9.png)
## 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
```