Laravel Artisan is not available as a composer package. You can use Laravel Artisan in your project with this package.
- Run
composer require moon/artisan - Run
./vendor/moon/artisan/artisan artisan:init. This command creates artisan-config.php and artisan in your root directory.
- Run
php artisan make:console command-nameto create a new command. - When you create a new command, it will have Artisan\Console\Commands namespace. For example, if you run
php artisan make:console Hello, you will get Artisan\Console\Commands\Hello as a fully qualified class name. - Add the fully qualified class name to artisan-config.php
- Run
php artisan listto confirm.
For general usage, please refer to Artisan documentation at http://laravel.com/docs/5.1/artisan