PHPackages                             innmind/async - 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. [Queues &amp; Workers](/categories/queues)
4. /
5. innmind/async

ActiveLibrary[Queues &amp; Workers](/categories/queues)

innmind/async
=============

Async orchestration

2.0.0(3mo ago)17.6k↓47.8%[3 issues](https://github.com/Innmind/async/issues)1MITPHPPHP ~8.4CI passing

Since Aug 23Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/Innmind/async)[ Packagist](https://packagist.org/packages/innmind/async)[ Docs](http://github.com/innmind/async)[ RSS](/packages/innmind-async/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (8)Versions (6)Used By (1)

async
=====

[](#async)

[![CI](https://github.com/Innmind/async/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/Innmind/async/actions/workflows/ci.yml)[![codecov](https://camo.githubusercontent.com/55fe28b9cac50141a03cc8d3a6f3de4d9303763cb4745b1fcad8f1e7d768ac51/68747470733a2f2f636f6465636f762e696f2f67682f696e6e6d696e642f6173796e632f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://codecov.io/gh/innmind/async)[![Type Coverage](https://camo.githubusercontent.com/3a864c97c43f31dad7ce2fec44e2800154b2413fee8d546b558f5803652930fe/68747470733a2f2f73686570686572642e6465762f6769746875622f696e6e6d696e642f6173796e632f636f7665726167652e737667)](https://shepherd.dev/github/innmind/async)

Abstraction on top of `Fiber`s to coordinate multiple tasks asynchronously.

The goal is to easily move the execution of any code built using [`innmind/operating-system`](https://innmind.org/OperatingSystem/) from a synchronous context to an async one. This means that it's easier to experiment running a piece of code asynchronously and then move back if the experiment is not successful. This also means that you can test each part of an asynchronous system synchronously.

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

[](#installation)

```
composer require innmind/async
```

Usage
-----

[](#usage)

```
use Innmind\Async\{
    Scheduler,
    Scope\Continuation,
};
use Innmind\OperatingSystem\{
    OperatingSystem,
    Factory,
};
use Innmind\Immutable\Sequence;

Scheduler::of(Factory::build())
    ->sink(null)
    ->with(
        static fn(
            $_,
            OperatingSystem $os,
            Continuation $continuation,
        ) => $continuation
            ->schedule(Sequence::of(
                static fn(OperatingSystem $os) => importUsers($os),
                static fn(OperatingSystem $os) => importProducts($os),
            ))
            ->finish(),
    );
```

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance61

Regular maintenance activity

Popularity27

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity57

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

Total

2

Last Release

99d ago

Major Versions

1.0.0 → 2.0.02026-02-08

PHP version history (2 changes)1.0.0PHP ~8.2

2.0.0PHP ~8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/851425?v=4)[Baptiste Langlade](/maintainers/Baptouuuu)[@Baptouuuu](https://github.com/Baptouuuu)

---

Top Contributors

[![Baptouuuu](https://avatars.githubusercontent.com/u/851425?v=4)](https://github.com/Baptouuuu "Baptouuuu (91 commits)")

---

Tags

async

### Embed Badge

![Health badge](/badges/innmind-async/health.svg)

```
[![Health](https://phpackages.com/badges/innmind-async/health.svg)](https://phpackages.com/packages/innmind-async)
```

###  Alternatives

[amphp/amp

A non-blocking concurrency framework for PHP applications.

4.4k123.4M323](/packages/amphp-amp)[react/socket

Async, streaming plaintext TCP/IP and secure TLS socket server and client connections for ReactPHP

1.3k116.9M402](/packages/react-socket)[revolt/event-loop

Rock-solid event loop for concurrent PHP applications.

92343.6M138](/packages/revolt-event-loop)[spatie/async

Asynchronous and parallel PHP with the PCNTL extension

2.8k4.5M37](/packages/spatie-async)[amphp/parallel

Parallel processing component for Amp.

85046.2M74](/packages/amphp-parallel)[react/dns

Async DNS resolver for ReactPHP

536114.1M100](/packages/react-dns)

PHPackages © 2026

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