PHPackages                             ibrostudio/laravel-artisan-command-pool - 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. ibrostudio/laravel-artisan-command-pool

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

ibrostudio/laravel-artisan-command-pool
=======================================

Simplify and organize Artisan commands executed programmatically

1.1.2(8mo ago)04MITPHPPHP ^8.4CI failing

Since May 28Pushed 8mo agoCompare

[ Source](https://github.com/iBroStudio/laravel-artisan-command-pool)[ Packagist](https://packagist.org/packages/ibrostudio/laravel-artisan-command-pool)[ Docs](https://github.com/ibrostudio/laravel-artisan-command-pool)[ RSS](/packages/ibrostudio-laravel-artisan-command-pool/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (4)Dependencies (13)Versions (5)Used By (0)

Simplify and organize Artisan commands executed programmatically
================================================================

[](#simplify-and-organize-artisan-commands-executed-programmatically)

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

[](#installation)

You can install the package via composer:

```
composer require ibrostudio/laravel-artisan-command-pool
```

**Each command in the pool has to return a Illuminate\\Console\\Command int state (Command::SUCCESS or Command::FAILURE)**

Run statically
--------------

[](#run-statically)

```
use IBroStudio\CommandPool\CommandPool;

CommandPool::pool([
    Command1::class,
    Command2::class,
])->run()
```

**With command arguments (passed to each command in pool):**

```
use IBroStudio\CommandPool\CommandPool;

CommandPool::pool([
    Command1::class,
    Command2::class,
])->runWith(['name' => 'Name'])
```

**With different arguments for each command in pool:**

```
use IBroStudio\CommandPool\CommandPool;

CommandPool::pool([
    Command1::class => ['name' => 'Name'],
    Command2::class => ['title' => 'Title'],
])->run()
```

or

```
use IBroStudio\CommandPool\CommandPool;

CommandPool::pool([
    Command1::class,
    Command2::class => ['title' => 'Title'],
])->runWith(['name' => 'Name'])
```

Run from another command
------------------------

[](#run-from-another-command)

```
use IBroStudio\CommandPool\Concerns\HasCommandPool;

class MyContractorCommand extends Command
{
    use HasCommandPool;

    public function handle(): int
    {
        return $this->commandPool([
            Command1::class,
            Command2::class,
        ])->run();

        //or
        return $this->commandPool([
            Command1::class,
            Command2::class => ['title' => 'tata'],
        ])->runWith(['name' => $this->argument('name')]);
    }
```

Run conditionally
-----------------

[](#run-conditionally)

Add a `runIf` key with a closure returning a boolean:

```
use IBroStudio\CommandPool\CommandPool;

CommandPool::pool([
    Command1::class => ['runIf' => fn (): bool => false],
    Command2::class,
])->run() // will run only Command2
```

Credits
-------

[](#credits)

- [iBroStudio](https://github.com/iBroStudio)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance62

Regular maintenance activity

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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 ~69 days

Total

4

Last Release

240d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3a456dae716df4be38cb7d5f02ca522a02ec37eda586ab0cae0f504516b7c1ef?d=identicon)[iBroStudio](/maintainers/iBroStudio)

---

Top Contributors

[![Yann-iBroStudio](https://avatars.githubusercontent.com/u/2676572?v=4)](https://github.com/Yann-iBroStudio "Yann-iBroStudio (6 commits)")

---

Tags

laraveliBroStudiolaravel-artisan-command-pool

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/ibrostudio-laravel-artisan-command-pool/health.svg)

```
[![Health](https://phpackages.com/badges/ibrostudio-laravel-artisan-command-pool/health.svg)](https://phpackages.com/packages/ibrostudio-laravel-artisan-command-pool)
```

###  Alternatives

[binaryk/laravel-restify

Laravel REST API helpers

679422.0k](/packages/binaryk-laravel-restify)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3915.5k](/packages/rawilk-profile-filament-plugin)[harris21/laravel-fuse

Circuit breaker for Laravel queue jobs. Protect your workers from cascading failures.

46273.9k](/packages/harris21-laravel-fuse)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

25060.1k](/packages/vormkracht10-laravel-mails)[tarfin-labs/event-machine

Event-driven state machines for Laravel with event sourcing, type-safe context, and full audit trail.

219.6k](/packages/tarfin-labs-event-machine)

PHPackages © 2026

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