PHPackages                             vkovic/laravel-commando - 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. [CLI &amp; Console](/categories/cli)
4. /
5. vkovic/laravel-commando

ActiveLibrary[CLI &amp; Console](/categories/cli)

vkovic/laravel-commando
=======================

Collection of handy Laravel artisan commands that most projects needs

v0.2.1(4y ago)6139.2k↓40.2%10[7 issues](https://github.com/vkovic/laravel-commando/issues)MITPHPPHP ^7.3|^8.0CI failing

Since Jul 4Pushed 4y ago1 watchersCompare

[ Source](https://github.com/vkovic/laravel-commando)[ Packagist](https://packagist.org/packages/vkovic/laravel-commando)[ RSS](/packages/vkovic-laravel-commando/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (9)Used By (0)

Laravel Commando
================

[](#laravel-commando)

[![Build](https://camo.githubusercontent.com/f0ea944d0a73a3db6ae8f41e4e3bc615ba406d6b47463ade40eaddfad975d84b/68747470733a2f2f6170692e7472617669732d63692e6f72672f766b6f7669632f6c61726176656c2d636f6d6d616e646f2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/vkovic/laravel-commando)[![Downloads](https://camo.githubusercontent.com/3557f8690aa74be7d439a8f1c06dbf7cfeed9aa3f5f128b852c1dcf1e579c556/68747470733a2f2f706f7365722e707567782e6f72672f766b6f7669632f6c61726176656c2d636f6d6d616e646f2f646f776e6c6f616473)](https://packagist.org/packages/vkovic/laravel-commando)[![Stable](https://camo.githubusercontent.com/a634162faffc4bea298c8fbdb094e8123a5659c6ba9b8c61cd7cbbbf8241d0dc/68747470733a2f2f706f7365722e707567782e6f72672f766b6f7669632f6c61726176656c2d636f6d6d616e646f2f762f737461626c65)](https://packagist.org/packages/vkovic/laravel-commando)[![License](https://camo.githubusercontent.com/77e1331689313aecf70834cfa97e8c7c7a25d589a58a30ae1357947d996fd8ce/68747470733a2f2f706f7365722e707567782e6f72672f766b6f7669632f6c61726176656c2d636f6d6d616e646f2f6c6963656e7365)](https://packagist.org/packages/vkovic/laravel-commando)

### Collection of handy Laravel `artisan` commands that most projects needs

[](#collection-of-handy-laravel-artisan-commands-that-most-projects-needs)

Handy `artisan` commands that may find place in most of the Laravel projects regardless of the project type.

How often you wanted to perform some basic tasks like create or drop database, dump database or load from `.sql` dump, or to see which fields (and field types) are present in your models? Continue reading and I promise to easy this, and many more tasks to you 🍻

---

Compatibility
-------------

[](#compatibility)

The package is compatible with Laravel versions `5.5`, `5.6`, `5.7`, `5.8`, `6.x`, `7.x` and `8.x`.

> Because some commands rely on raw console commands (like `db:dump` which uses `mysqldump`), currently only MySql database and Linux environments are supported. Package is designed to easily support multiple OS-es and database types, and it should be easy implementation, so if anyone is interested to help, please feel free to contribute.

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

[](#installation)

Install the package via composer:

If your're using Laravel 8, run:

```
composer require vkovic/laravel-commando
```

If your're using Laravel prior version 8, run:

```
composer require vkovic/laravel-commando "^0.1"
```

Available commands
------------------

[](#available-commands)

> Package is in early stage so there is limited number of commands. I'm planning to add more, so if you have some suggestion you can require feature via issues page (click on `Issues -> New issue -> Feature request`)

###### Model related

[](#model-related)

- [**model**:list](#model-list) ~ List all application `Models` and related info
- [**model**:fields](#model-fields) ~ Show single `Model` and useful info

###### Database related

[](#database-related)

- [**db**:exist](#db-exist) ~ Check for database existance
- [**db**:create](#db-create) ~ Create database
- [**db**:drop](#db-drop) ~ Easily drop default or another db
- [**db**:dump](#db-dump) ~ Dump database to `.sql` file
- [**db**:import-dump](#db-import-dump) ~ Import db from exported `.sql`
- [**db**:summon](#db-summon) ~ create/drop | migrate | seed

---

`php artisan model:list`
------------------------

[](#php-artisan-modellist)

Show all models and some basic info.

- Model (model class)
- Table (table used by the model)
- Table count (count of all records in the model related table)
- Scope count (count of records with all scopes applied: `$n = SomeModel::count()`
- Soft deleted (show how many soft deleted items model have)

#### Usage example

[](#usage-example)

![php artisan model list command from laravel-commando package](https://raw.githubusercontent.com/vkovic/laravel-commando/master/docs/images/php_artisan_model_list.png)

`php artisan model:fields `
----------------------------------

[](#php-artisan-modelfields-model)

Show model fields info.

- Field (model field / table column)
- Type (db field type)
- Nullable (db value can be null)
- Default (default db value)
- Casts (attribute muttators)
- Guarded (field is not [mass assignable](https://laravel.com/docs/5.8/eloquent#mass-assignment))
- Fillable (field is mass assignable)

Arguments:

- `model` optional: Model to show fields from (e.g. `"App\User"`). If omitted, list of all models will be shown to choose from.

#### Usage example

[](#usage-example-1)

[![php artisan model fields command from laravel-commando package](https://raw.githubusercontent.com/vkovic/laravel-commando/master/docs/images/php_artisan_model_fields.png)](https://raw.githubusercontent.com/vkovic/laravel-commando/master/docs/images/php_artisan_model_fields.png)

`php artisan db:exist `
---------------------------------

[](#php-artisan-dbexist-database)

Check if database exists

###### Arguments:

[](#arguments)

- `database` optional: Database name to check. If omitted it'll check for default db (defined in `.env`).

#### Usage example

[](#usage-example-2)

![php artisan db exists command from laravel-commando package](https://raw.githubusercontent.com/vkovic/laravel-commando/master/docs/images/php_artisan_db_exist.png)

`php artisan db:create `
----------------------------------

[](#php-artisan-dbcreate-database)

Create database

Arguments:

- `database` optional: Database to create. If omitted, name from `.env` will be used.

#### Usage example

[](#usage-example-3)

![php artisan db create command from laravel-commando package](https://raw.githubusercontent.com/vkovic/laravel-commando/master/docs/images/php_artisan_db_create.png)

`php artisan db:drop `
--------------------------------

[](#php-artisan-dbdrop-database)

Drop database

Arguments:

- `database` optional: Database to drop. If omitted, name from `.env` will be used

#### Usage example

[](#usage-example-4)

![php artisan db drop command from laravel-commando package](https://raw.githubusercontent.com/vkovic/laravel-commando/master/docs/images/php_artisan_db_drop.png)

`php artisan db:dump  `
----------------------------------------

[](#php-artisan-dbdump-database---dir)

Dump database to `.sql` file

Arguments:

- `database` optional: Database to dump. If omitted, name from `.env` will be used.

Options:

- `--dir`: Directory for dump creation. If omitted default filesystem dir will be used.

#### Usage example

[](#usage-example-5)

![php artisan db dump command from laravel-commando package](https://raw.githubusercontent.com/vkovic/laravel-commando/master/docs/images/php_artisan_db_dump.png)

`php artisan db:import-dump  `
-----------------------------------------------

[](#php-artisan-dbimport-dump-database---dir)

Import dump from `.sql` file

Arguments:

- `database` optional: Database to import dump to. If omitted, name from `.env` will be used.

Options:

- `--dir`: Directory for dump lookup. If omitted default filesystem dir will be used.

#### Usage example

[](#usage-example-6)

![php artisan db import dump command from laravel-commando package](https://raw.githubusercontent.com/vkovic/laravel-commando/master/docs/images/php_artisan_db_import_dump.png)

`php artisan db:summon`
-----------------------

[](#php-artisan-dbsummon)

Drop default database, than perform migrate followed with the seed.

Useful in early stages of development when we changing models (migrations and seeds) a lot.

#### Usage example

[](#usage-example-7)

![php artisan db summon command from laravel-commando package](https://raw.githubusercontent.com/vkovic/laravel-commando/master/docs/images/php_artisan_db_summon.png)

---

Contributing
------------

[](#contributing)

If you plan to modify this Laravel package you should run tests that comes with it. Easiest way to accomplish this would be with `Docker`, `docker-compose` and `phpunit`.

First, we need to initialize Docker containers (see `docker-composer.yaml` for details).

```
docker-compose up --exit-code-from app
```

After that, we can run tests and watch the output:

```
docker-compose run --rm app phpunit
```

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity42

Moderate usage in the ecosystem

Community11

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

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

Recently: every ~233 days

Total

8

Last Release

1499d ago

PHP version history (2 changes)v0.1.0PHP ^7.1

v0.2.0PHP ^7.3|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/af6bef6672c28298c8c200a89e8c076049ef170ebf50cea3cb7eb96c2ee5c105?d=identicon)[vkovic](/maintainers/vkovic)

---

Top Contributors

[![vkovic](https://avatars.githubusercontent.com/u/4613605?v=4)](https://github.com/vkovic "vkovic (77 commits)")

---

Tags

artisancommandsconsolelaravelconsolelaravelartisancommands

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/vkovic-laravel-commando/health.svg)

```
[![Health](https://phpackages.com/badges/vkovic-laravel-commando/health.svg)](https://phpackages.com/packages/vkovic-laravel-commando)
```

###  Alternatives

[nunomaduro/laravel-console-dusk

Laravel Console Dusk allows the usage of Laravel Dusk in Laravel/Laravel Zero artisan commands.

16255.4k7](/packages/nunomaduro-laravel-console-dusk)[rahul900day/laravel-console-spinner

Laravel Console Spinner is a spinner output for Laravel command line.

76125.4k1](/packages/rahul900day-laravel-console-spinner)[guratr/nova-command-runner

Laravel Nova tool for running Artisan commands.

43232.8k1](/packages/guratr-nova-command-runner)[zachleigh/artisanize

Use Laravel Artisan command syntax in any Symfony Console project.

122.6k1](/packages/zachleigh-artisanize)

PHPackages © 2026

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