Skip to content

Commit 1ca7199

Browse files
committed
readme update
1 parent c234cfe commit 1ca7199

File tree

2 files changed

+48
-14
lines changed

2 files changed

+48
-14
lines changed

README.md

Lines changed: 48 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,66 @@
1-
# Very short description of the package
1+
![Social Image](social.jpg)
22

3-
[![Latest Version on Packagist](https://img.shields.io/packagist/v/laratoolbox/databaseviewer.svg?style=flat-square)](https://packagist.org/packages/laratoolbox/databaseviewer)
4-
[![Build Status](https://img.shields.io/travis/laratoolbox/databaseviewer/master.svg?style=flat-square)](https://travis-ci.org/laratoolbox/databaseviewer)
5-
[![Quality Score](https://img.shields.io/scrutinizer/g/laratoolbox/databaseviewer.svg?style=flat-square)](https://scrutinizer-ci.com/g/laratoolbox/databaseviewer)
6-
[![Total Downloads](https://img.shields.io/packagist/dt/laratoolbox/databaseviewer.svg?style=flat-square)](https://packagist.org/packages/laratoolbox/databaseviewer)
3+
[![Latest Version on Packagist](https://img.shields.io/packagist/v/laratoolbox/database-viewer.svg?style=flat-square)](https://packagist.org/packages/laratoolbox/database-viewer)
4+
[![Build Status](https://img.shields.io/travis/laratoolbox/database-viewer/master.svg?style=flat-square)](https://travis-ci.org/laratoolbox/database-viewer)
5+
[![Quality Score](https://img.shields.io/scrutinizer/g/laratoolbox/database-viewer.svg?style=flat-square)](https://scrutinizer-ci.com/g/laratoolbox/database-viewer)
6+
[![Total Downloads](https://img.shields.io/packagist/dt/laratoolbox/database-viewer.svg?style=flat-square)](https://packagist.org/packages/laratoolbox/database-viewer)
77

8-
This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors.
8+
This package adds commands for getting table / column info into artisan cli.
99

1010
## Installation
1111

1212
You can install the package via composer:
1313

1414
```bash
15-
composer require laratoolbox/databaseviewer
15+
$ composer require laratoolbox/database-viewer
1616
```
1717

1818
## Usage
1919

20-
``` php
21-
// Usage description here
20+
* Get tables
21+
```shell
22+
$ php artisan db:tables
23+
24+
failed_jobs
25+
migrations
26+
password_resets
27+
users
28+
```
29+
30+
* Get columns for a specific table
31+
```shell
32+
$ php artisan db:columns --table=users
33+
34+
id
35+
name
36+
email
37+
email_verified_at
38+
password
39+
remember_token
40+
created_at
41+
updated_at
42+
```
43+
44+
* Get columns for a specific table as doc block formatted
45+
```shell
46+
$ php artisan db-columns-doc --table=users
47+
48+
/**
49+
* @property int $id
50+
* @property string $name
51+
* @property string $email
52+
* @property string|\Illuminate\Support\Carbon $email_verified_at
53+
* @property string $password
54+
* @property string $remember_token
55+
* @property string|\Illuminate\Support\Carbon $created_at
56+
* @property string|\Illuminate\Support\Carbon $updated_at
57+
*/
2258
```
2359

2460
### Testing
2561

2662
``` bash
27-
composer test
63+
$ composer test
2864
```
2965

3066
### Changelog
@@ -43,11 +79,9 @@ If you discover any security related issues, please email hasansemiherdogan@gmai
4379

4480
- [Semih ERDOGAN](https://github.com/laratoolbox)
4581
- [All Contributors](../../contributors)
82+
- The social image generated with [banners.beyondco.de](https://banners.beyondco.de/).
83+
- This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).
4684

4785
## License
4886

4987
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
50-
51-
## Laravel Package Boilerplate
52-
53-
This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

social.jpg

902 KB
Loading

0 commit comments

Comments
 (0)