Download the PHP package vkovic/laravel-commando without Composer

On this page you can find all versions of the php package vkovic/laravel-commando. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-commando

Laravel Commando

Build Downloads Stable License

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 :beers:


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

Install the package via composer:

If your're using Laravel 8, run:

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

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
Database related

php artisan model:list

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

php artisan model list command from laravel-commando package

php artisan model:fields <model>

Show model fields info.

Arguments:

Usage example

php artisan model fields command from laravel-commando package

php artisan db:exist <database>

Check if database exists

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

Usage example

php artisan db exists command from laravel-commando package

php artisan db:create <database>

Create database

Arguments:

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

Usage example

php artisan db create command from laravel-commando package

php artisan db:drop <database>

Drop database

Arguments:

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

Usage example

php artisan db drop command from laravel-commando package

php artisan db:dump <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

php artisan db dump command from laravel-commando package

php artisan db:import-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

php artisan db import dump command from laravel-commando package

php artisan db:summon

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

php artisan db summon command from laravel-commando package


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).

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


All versions of laravel-commando with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3|^8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package vkovic/laravel-commando contains the following files

Loading the files please wait ....