romanzipp / laravel-console-list-columns
List database tables columns & information.
Fund package maintenance!
romanzipp
Installs: 11 418
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^8.0
- doctrine/dbal: ^2.7|^3.0
- illuminate/console: ^5.5|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
- illuminate/support: ^5.5|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
- spatie/emoji: ^2.1
- symfony/console: ^4.0|^5.0|^6.0|^7.0
- wujunze/php-cli-color: ^2.4
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- mockery/mockery: ^1.3.2
- orchestra/testbench: >=3.8
- phpstan/phpstan: ^0.12.99|^1.0
- phpunit/phpunit: ^8.5.30|^9.0
- romanzipp/php-cs-fixer-config: ^3.0
README
When working with many database migrations you can quickly lose the overview about table structures. With this package you can get a simple overview about table and column information on your command line.
Installation
composer require romanzipp/laravel-console-list-columns
Configuration
Copy configuration to config folder:
php artisan vendor:publish --provider="romanzipp\ColumnList\Providers\ColumnListProvider"
Usage
php artisan db:cols
{table} Comma separated table names to print out
{--connection=} Specified database connection
{--no-colors} Don't use colors in output
{--no-emojis} Don't use emojis in output
php artisan db:cols users
Testing
./vendor/bin/phpunit