PHPackages                             rx/swoole - 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. rx/swoole

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

rx/swoole
=========

RxPHP Swoole

0.0.2(8y ago)2112MITPHP

Since Apr 19Pushed 8y ago2 watchersCompare

[ Source](https://github.com/RxPHP/Swoole)[ Packagist](https://packagist.org/packages/rx/swoole)[ RSS](/packages/rx-swoole/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

RxPHP Swoole
============

[](#rxphp-swoole)

This project allows you to use RxPHP with Swoole.

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

[](#installation)

First, install [swoole](https://www.swoole.co.uk/)

Then add rx/swoole to your project with composer:

```
    composer require rx/swoole
```

It bootstraps a swoole scheduler for you, so you can do things like:

```
  \Rx\Observable::interval(1000)
    ->take(5)
    ->subscribe(function($i){
      echo $i, PHP_EOL;
    });

```

Use with other Swoole modules
-----------------------------

[](#use-with-other-swoole-modules)

A small number of Swoole modules have helper Rx wrappers in this library. You can use these to combine into more complex examples:

```
// this example uses the rx/operator-extras package for `cut`

$file = \Rx\Swoole\Async::read(__DIR__ . '/url_list.txt');

$urlInfo = $file
    ->cut("\n")
    ->flatMap(function ($url) {
        return \Rx\Swoole\Http::get($url)
            ->map(function ($content) use ($url) {
                return $url . " is " . strlen($content) . " bytes.\n";
            });
    });

$urlInfo->subscribe(function ($info) {
        echo $info;
    });
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 62.5% 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 ~0 days

Total

2

Last Release

2947d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/97c5ea11cb85867441e824660b316d8c4c081400e21781c56bb561f1f5b0bb87?d=identicon)[davidwdan](/maintainers/davidwdan)

---

Top Contributors

[![davidwdan](https://avatars.githubusercontent.com/u/4969183?v=4)](https://github.com/davidwdan "davidwdan (5 commits)")[![mbonneau](https://avatars.githubusercontent.com/u/748287?v=4)](https://github.com/mbonneau "mbonneau (3 commits)")

---

Tags

reactivexrxphpswooleswoolerx.phpreactivex

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rx-swoole/health.svg)

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

###  Alternatives

[hyperf/di

A DI for Hyperf.

182.8M594](/packages/hyperf-di)[hyperf/crontab

A crontab component for Hyperf.

131.6M62](/packages/hyperf-crontab)

PHPackages © 2026

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