Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -370,12 +370,16 @@ composer test:coverage

Coverage output is written to the terminal, `tests/coverage/clover.xml`, and `tests/coverage/html`.

Use the self test to run all checks concurrently:

```bash
composer all
```

## Why not …?

- **`phpcs --parallel`, PHPStan workers, ParaTest** — these parallelize *within one config*. `run-parallel` parallelizes *across configs* (one run per package), and the two compose: each `run-parallel` task can itself use the tool's own parallelism.
- **[veewee/composer-run-parallel](https://github.com/veewee/composer-run-parallel)** — runs named Composer scripts concurrently, like `run-parallel`'s command-list mode, but has no path discovery or per-path command templating.
- **[symplify/monorepo-builder](https://github.com/symplify/monorepo-builder)** — manages `composer.json` merging and releases; it is not a task runner.
- **Turborepo/Nx-class runners** — bring dependency graphs, caching, and affected-detection at the cost of lock-in and configuration. `run-parallel` is deliberately the small end of that spectrum: think GNU `parallel` for Composer projects.

## Notes

Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"bin/run-parallel"
],
"scripts": {
"all": "@php bin/run-parallel 'composer lint' 'composer analyse' 'composer test'",
"lint": "phpcs",
"format": "phpcbf",
"analyse": "phpstan analyse",
Expand Down