justustheis / laravel-console-checkmark
Laravel Console CheckMark is an output method for laravel commands representing success with a checkmark.
v5.0.0
2025-01-20 17:25 UTC
Requires
- php: ^8.4
- illuminate/console: ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
- illuminate/support: ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
Requires (Dev)
- phpunit/phpunit: ^8.5.8|^9.0
README
This package is highly inspired by and partly forked from nunomaduro/laravel-console-task
About Laravel Console Checkmark
Laravel Console Checkmark is a fork of nunomaduro/laravel-console-task created by Nuno Maduro. His package is an output method for Laravel Console Commands. This fork adds the functionality to output sub tasks or print status information about the main task.
Installation
Requires:
Require Laravel Console Checkmark using Composer:
composer require justustheis/laravel-console-checkmark
Usage
class LaravelInstallCommand extends Command { /** * Execute the console command. * * @return void */ public function handle() { $this->task('Installing Laravel', function (ConsoleCheckmarkOutput $output) { $output->text('Normal style text'); $output->success('A success message'); $output->error('An error message'); $output->caution('A caution message'); $output->comment('A comment message'); $output->note('A magenta colored note message'); return true; }); } }
License
Laravel Console Checkmark is an open-sourced software licensed under the MIT license.