New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

nunomaduro/laravel-console-task

Laravel Console Task is a output method for your Laravel/Laravel Zero commands.
2,709,194 260
Install
composer require nunomaduro/laravel-console-task
Latest Version:v1.11.0
PHP:^8.2
Laravel:11 · 12 · 13
Older releases:5 – 10
License:MIT
Last Updated:Feb 24, 2026
Links: GitHub  ·  Packagist
Maintainer: nunomaduro

StyleCI Status Total Downloads Latest Stable Version License

About Laravel Console Task

Laravel Console Task was created by, and is maintained by Nuno Maduro, and is output method for Laravel Console Commands.

Installation

Requires:

Require Laravel Console Task using Composer:

composer require nunomaduro/laravel-console-task

Usage

class LaravelInstallCommand extends Command
{
    /**
     * Execute the console command.
     *
     * @return void
     */
    public function handle()
    {
        $this->task('Installing Laravel', function () {
            return true;
        });

        $this->task('Doing something else', function () {
            return false;
        });

        // Specify a 3rd parameter for a custom loading message
        // Default is `loading...`
        $this->task('Long task', function () {
            sleep(60);
            return true;
        }, 'sleeping...');
    }
}

Contributing

Thank you for considering to contribute to Laravel Console Task. All the contribution guidelines are mentioned here.

You can have a look at the CHANGELOG for constant updates & detailed information about the changes. You can also follow the twitter account for latest announcements or just come say hi!: @enunomaduro

License

Laravel Console Task is an open-sourced software licensed under the MIT license.

Related Packages

nunomaduro/laravel-console-summary

A Beautiful Laravel Console Summary for your Laravel/Laravel Zero commands.

2,646,863 67
nunomaduro/laravel-console-menu

Laravel Console Menu is an output method for your Laravel/Laravel Zero commands.

462,069 810
nunomaduro/laravel-console-dusk

Laravel Console Dusk allows the usage of Laravel Dusk in Laravel/Laravel Zero ar...

62,045 162
rahul900day/laravel-console-spinner

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

136,306 76
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

412,228,818 4,664

Version History

Version Released PHP Laravel License
v1.11.0 ^8.2 ^11.0|^12.0|^13.0 MIT
v1.10.0 ^8.2 ^10.0|^11.0|^12.0 MIT
v1.9.0 ^8.1 ^10.0|^11.0 MIT
v1.8.0 ^8.1 ^9.0|^10.0 MIT
v1.7.0 ^7.2.5|^8.0 ^6.0|^7.0|^8.0|^9.0 MIT