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

This package is auto-updated.

Last update: 2025-06-20 18:29:14 UTC


README

Maintenance Packagist Packagist Version GitHub issues GitHub

LaravelConsoleCheckmark

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.