spatie/async
Easily run code asynchronously observed · 2026-08-28
Health v2 · maintenance only
74/100
- Activity 85
- Release rhythm 45
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 93.5
- age_days: 3184
- days_rel: 205
- days_push: 92
- n_releases_24m: 5
Adoption not part of the score
2815 stars · 184 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A PHP library providing a small, easy-to-use wrapper around PHP's PCNTL extension for running code in parallel processes. It offers a pool-based API with promise-like then/catch/timeout hooks for managing asynchronous tasks.
Use cases
- run php tasks in parallel
- execute background processes in php
- speed up batch processing with multiprocessing
- run closures asynchronously in php
- parallelize cpu-bound work in php scripts
- handle process timeouts and errors in parallel php
When to choose
- you need simple parallel execution in PHP without heavy queue infrastructure
- you're on Linux with PCNTL available and want a lightweight process pool
- you want promise-style success/error/timeout handling for child processes
When to avoid
- you're on Windows or shared hosting without PCNTL
- you need distributed or persistent background job queues (use a message queue instead)
- you need true async I/O within a single thread rather than multiprocessing
Facets
library · maturity active
concurrency developer-tools developer-tools performance backend php cli parallel-processing pcntl process-pool async-php linux
4 sources
- readme: https://github.com/spatie/async · fetched 2026-08-28 · fb9e58036509
- homepage: https://spatie.be/en/opensource/php · fetched 2026-08-29 · 4a0ae7f7c9b6
- site_page: https://spatie.be/docs · fetched 2026-08-29 · 08e024d86d95
- site_page: https://spatie.be/about-us · fetched 2026-08-29 · d3cb88e4b34c
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| spatie/async | main | 74 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem