PHPackages                             veewee/composer-run-parallel - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. veewee/composer-run-parallel

ActiveComposer-plugin[Utility &amp; Helpers](/categories/utility)

veewee/composer-run-parallel
============================

Run composer tasks in parallel

1.5.0(9mo ago)92810.6k↓35.2%49MITPHPPHP ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0CI failing

Since Dec 2Pushed 9mo ago3 watchersCompare

[ Source](https://github.com/veewee/composer-run-parallel)[ Packagist](https://packagist.org/packages/veewee/composer-run-parallel)[ GitHub Sponsors](https://github.com/veewee)[ RSS](/packages/veewee-composer-run-parallel/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (7)Dependencies (4)Versions (8)Used By (9)

Composer run parallel
=====================

[](#composer-run-parallel)

This composer plugin allows you to run the tasks inside your composer file in parallel. No more waiting on one specific task!

[Please find my blog post describing the whole story.](https://veewee.github.io/blog/run-composer-tasks-in-parallel/)

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

[](#installation)

```
composer require --dev veewee/composer-run-parallel
```

or globally ...

```
composer require --global veewee/composer-run-parallel
```

Examples
--------

[](#examples)

```
{
  "scripts": {
    "php1": "@php -r 'sleep(3); echo \"1\";'",
    "php2": "@php -r 'echo \"2\";'"
  }
}
```

Following command will result in parallel execution of both php1 and php2:

```
composer run parallel php1 php2
```

You can even create a shortcut script for the parallel function like this:

```
{
  "scripts": {
    "php1": "@php -r 'sleep(3); echo \"1\";'",
    "php2": "@php -r 'echo \"2\";'",
    "php1And2": "@parallel php1 php2"
  }
}
```

```
composer run php1And2
```

What if a task fails?

```
{
  "scripts": {
    "php1": "@php -r 'sleep(3); echo \"1\";'",
    "phpfail": "@php -r 'throw new Exception(\"FAIL\");'"
  }
}
```

All tasks will be executed and if one fails, the parallel task will fail as well:

```
composer run parallel php1 phpfail

Succesfully ran:
php1

Failed running:
phpfail

Not all tasks could be executed succesfully!
```

*Note*: You can also use the shorthand command:

```
composer parallel php1 phpfail
```

Pretty cool right? What If I told you there is even more?!

```
{
  "scripts": {
    "wicked": [
      "@parallel vendor php2",
      "@php1"
    ]
  }
}
```

You can even mix parallel tasks with serial tasks and even nest multiple parallel tasks at the same time. This way you can create flows like:

- do some checks first
- next run some stuff in parallel
- finish up with some blocking cleanup task if everything was ok

###  Health Score

57

—

FairBetter than 98% of packages

Maintenance57

Moderate activity, may be stable

Popularity51

Moderate usage in the ecosystem

Community26

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor1

Top contributor holds 86.1% 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 ~295 days

Recently: every ~356 days

Total

7

Last Release

287d ago

Major Versions

v0.1.0 → v1.0.02020-12-02

PHP version history (6 changes)v0.1.0PHP ^7.4 || ^8.0

v1.1.0PHP ^7.4 || ^8.0.0 || ^8.1.0

1.2.0PHP ^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0

1.3.0PHP ^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0

1.4.0PHP ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0

1.5.0PHP ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/c0cb7e57de4834c7e94552864acb7c5640725b5ec0ea8f087ebbf6761dd3c206?d=identicon)[veewee](/maintainers/veewee)

---

Top Contributors

[![veewee](https://avatars.githubusercontent.com/u/1618158?v=4)](https://github.com/veewee "veewee (31 commits)")[![acelaya](https://avatars.githubusercontent.com/u/2719332?v=4)](https://github.com/acelaya "acelaya (3 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (1 commits)")[![staabm](https://avatars.githubusercontent.com/u/120441?v=4)](https://github.com/staabm "staabm (1 commits)")

---

Tags

composerparallelscriptsplugincomposerparallelruntaskmanager

### Embed Badge

![Health badge](/badges/veewee-composer-run-parallel/health.svg)

```
[![Health](https://phpackages.com/badges/veewee-composer-run-parallel/health.svg)](https://phpackages.com/packages/veewee-composer-run-parallel)
```

###  Alternatives

[ergebnis/composer-normalize

Provides a composer plugin for normalizing composer.json.

1.1k41.8M3.0k](/packages/ergebnis-composer-normalize)[pyrech/composer-changelogs

Display changelogs after each composer update

5904.2M32](/packages/pyrech-composer-changelogs)[automattic/jetpack-autoloader

Creates a custom autoloader for a plugin or theme.

576.1M139](/packages/automattic-jetpack-autoloader)[drupal/core-composer-scaffold

A flexible Composer project scaffold builder.

5345.4M570](/packages/drupal-core-composer-scaffold)[vaimo/composer-patches

Applies a patch from a local or remote file to any package that is part of a given composer project. Patches can be defined both on project and on package level. Optional support for patch versioning, sequencing, custom patch applier configuration and patch command for testing/troubleshooting added patches.

3014.6M26](/packages/vaimo-composer-patches)[ffraenz/private-composer-installer

A composer install helper for private packages

2321.7M5](/packages/ffraenz-private-composer-installer)

PHPackages © 2026

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