PHPackages                             nunomaduro/laravel-console-task - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. nunomaduro/laravel-console-task

ActiveLibrary[CLI &amp; Console](/categories/cli)

nunomaduro/laravel-console-task
===============================

Laravel Console Task is a output method for your Laravel/Laravel Zero commands.

v1.11.0(2mo ago)2582.1M↓10.6%20[3 issues](https://github.com/nunomaduro/laravel-console-task/issues)10MITPHPPHP ^8.2CI passing

Since Dec 18Pushed 2mo ago6 watchersCompare

[ Source](https://github.com/nunomaduro/laravel-console-task)[ Packagist](https://packagist.org/packages/nunomaduro/laravel-console-task)[ RSS](/packages/nunomaduro-laravel-console-task/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (22)Used By (10)

 [![](docs/example.png)](docs/example.png)

 [![StyleCI Status](https://camo.githubusercontent.com/abd3f09a18529766b8f3fd0061e8075f757844c90c79c76d825982c467724dfc/68747470733a2f2f7374796c6563692e696f2f7265706f732f3131333738393333312f736869656c64)](https://styleci.io/repos/113789331) [![Total Downloads](https://camo.githubusercontent.com/f2081c38c8e392cc4e55276b6a49128485fa5d77fca57514eaebcb5f803b6fdb/68747470733a2f2f706f7365722e707567782e6f72672f6e756e6f6d616475726f2f6c61726176656c2d636f6e736f6c652d7461736b2f642f746f74616c2e737667)](https://packagist.org/packages/nunomaduro/laravel-console-task) [![Latest Stable Version](https://camo.githubusercontent.com/63c4146a8de9e15afd8bfaa7e066f950b82bd3776c3e2500b12b3bbf1ab61848/68747470733a2f2f706f7365722e707567782e6f72672f6e756e6f6d616475726f2f6c61726176656c2d636f6e736f6c652d7461736b2f762f737461626c652e737667)](https://packagist.org/packages/nunomaduro/laravel-console-task) [![License](https://camo.githubusercontent.com/23199d5c2a01a7845d93b186be47707c2c284b9254071ea4fcc2285579deaeec/68747470733a2f2f706f7365722e707567782e6f72672f6e756e6f6d616475726f2f6c61726176656c2d636f6e736f6c652d7461736b2f6c6963656e73652e737667)](https://packagist.org/packages/nunomaduro/laravel-console-task)

About Laravel Console Task
--------------------------

[](#about-laravel-console-task)

Laravel Console Task was created by, and is maintained by [Nuno Maduro](https://github.com/nunomaduro), and is output method for Laravel Console Commands.

Installation
------------

[](#installation)

> **Requires:**
>
> - **[PHP 8.2+](https://php.net/releases)**
> - **[Laravel 10.0+](https://github.com/laravel/laravel)**

Require Laravel Console Task using [Composer](https://getcomposer.org):

```
composer require nunomaduro/laravel-console-task
```

Usage
-----

[](#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
------------

[](#contributing)

Thank you for considering to contribute to Laravel Console Task. All the contribution guidelines are mentioned [here](CONTRIBUTING.md).

You can have a look at the [CHANGELOG](CHANGELOG.md) for constant updates &amp; detailed information about the changes. You can also follow the twitter account for latest announcements or just come say hi!: [@enunomaduro](https://twitter.com/enunomaduro)

License
-------

[](#license)

Laravel Console Task is an open-sourced software licensed under the [MIT license](LICENSE.md).

###  Health Score

69

—

FairBetter than 100% of packages

Maintenance84

Actively maintained with recent releases

Popularity59

Moderate usage in the ecosystem

Community31

Small or concentrated contributor base

Maturity85

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~157 days

Recently: every ~375 days

Total

20

Last Release

83d ago

PHP version history (5 changes)v1.0.0PHP ^7.0

v1.5.0PHP ^7.2.5

v1.6.0PHP ^7.2.5|^8.0

v1.8.0PHP ^8.1

v1.10.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/86cfef5c1f5195df1a9db17a5f8ecb34455e1f0133a725de9acf7f2fb26ac6a1?d=identicon)[nunomaduro](/maintainers/nunomaduro)

---

Top Contributors

[![nunomaduro](https://avatars.githubusercontent.com/u/5457236?v=4)](https://github.com/nunomaduro "nunomaduro (39 commits)")[![owenvoke](https://avatars.githubusercontent.com/u/1899334?v=4)](https://github.com/owenvoke "owenvoke (32 commits)")[![Broutard](https://avatars.githubusercontent.com/u/1552045?v=4)](https://github.com/Broutard "Broutard (5 commits)")[![svenluijten](https://avatars.githubusercontent.com/u/11269635?v=4)](https://github.com/svenluijten "svenluijten (2 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (2 commits)")[![Namoshek](https://avatars.githubusercontent.com/u/8877609?v=4)](https://github.com/Namoshek "Namoshek (2 commits)")[![miclf](https://avatars.githubusercontent.com/u/3188746?v=4)](https://github.com/miclf "miclf (1 commits)")[![octoper](https://avatars.githubusercontent.com/u/6823226?v=4)](https://github.com/octoper "octoper (1 commits)")[![michaeldyrynda](https://avatars.githubusercontent.com/u/558441?v=4)](https://github.com/michaeldyrynda "michaeldyrynda (1 commits)")[![steache](https://avatars.githubusercontent.com/u/34166829?v=4)](https://github.com/steache "steache (1 commits)")[![joaorobertopb](https://avatars.githubusercontent.com/u/6556083?v=4)](https://github.com/joaorobertopb "joaorobertopb (1 commits)")

---

Tags

phpcliconsolecommand-linesymfonylaravelartisanlaravel-zero

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/nunomaduro-laravel-console-task/health.svg)

```
[![Health](https://phpackages.com/badges/nunomaduro-laravel-console-task/health.svg)](https://phpackages.com/packages/nunomaduro-laravel-console-task)
```

###  Alternatives

[nunomaduro/collision

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

4.6k331.8M8.5k](/packages/nunomaduro-collision)[nunomaduro/laravel-console-menu

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

815412.0k48](/packages/nunomaduro-laravel-console-menu)[nunomaduro/laravel-console-summary

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

662.0M3](/packages/nunomaduro-laravel-console-summary)[nunomaduro/laravel-console-dusk

Laravel Console Dusk allows the usage of Laravel Dusk in Laravel/Laravel Zero artisan commands.

16255.4k7](/packages/nunomaduro-laravel-console-dusk)[rahul900day/laravel-console-spinner

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

76125.4k1](/packages/rahul900day-laravel-console-spinner)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M369](/packages/laravel-zero-framework)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
