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(6mo ago)04MITPHPPHP ^8.4CI failing

Since May 28Pushed 6mo 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 today

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

36

—

LowBetter than 79% of packages

Maintenance67

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

195d 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

[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.1k11.2M100](/packages/dedoc-scramble)[spatie/laravel-passkeys

Use passkeys in your Laravel app

471890.7k39](/packages/spatie-laravel-passkeys)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

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

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

44855.7k](/packages/harris21-laravel-fuse)[danestves/laravel-polar

A package to easily integrate your Laravel application with Polar.sh

8120.4k](/packages/danestves-laravel-polar)

PHPackages © 2026

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