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

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

api-clients/rx
==============

RxPHP utilities

2.3.0(4y ago)1141.0k↑16.7%2[3 PRs](https://github.com/php-api-clients/rx/pulls)15MITPHPPHP ^8 || ^7.4

Since Mar 22Pushed 2y ago1 watchersCompare

[ Source](https://github.com/php-api-clients/rx)[ Packagist](https://packagist.org/packages/api-clients/rx)[ GitHub Sponsors](https://github.com/WyriHaximus)[ RSS](/packages/api-clients-rx/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (12)Used By (15)

RxPHP utilities for PHP 7
=========================

[](#rxphp-utilities-for-php-7)

[![Build Status](https://camo.githubusercontent.com/4f3393caeb913cbd2ba34f488b7e5a592fd1024fbb0457d74dcace6135077707/68747470733a2f2f7472617669732d63692e6f72672f7068702d6170692d636c69656e74732f72782e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/php-api-clients/rx)[![Latest Stable Version](https://camo.githubusercontent.com/f8445a1bd141d000e2336d9a2adf7d170c1126eec94ff451907752030448feea/68747470733a2f2f706f7365722e707567782e6f72672f6170692d636c69656e74732f72782f762f737461626c652e706e67)](https://packagist.org/packages/api-clients/rx)[![Total Downloads](https://camo.githubusercontent.com/519d64aff53aa3798daf18af3039a69a488cd63d6c95bbe096cea6873e87e8e4/68747470733a2f2f706f7365722e707567782e6f72672f6170692d636c69656e74732f72782f646f776e6c6f6164732e706e67)](https://packagist.org/packages/api-clients/rx)[![Code Coverage](https://camo.githubusercontent.com/55dcce1fc7ef5cff96c5d9c1295d26d931a19a5b10e67f7dd481051c365740e5/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7068702d6170692d636c69656e74732f72782f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/php-api-clients/rx/?branch=master)[![License](https://camo.githubusercontent.com/121a47eaa22692df5bb5b7ff51ce16a2c017fbbea4e211b395ad9f96575e2847/68747470733a2f2f706f7365722e707567782e6f72672f6170692d636c69656e74732f72782f6c6963656e73652e706e67)](https://packagist.org/packages/api-clients/rx)[![PHP 7 ready](https://camo.githubusercontent.com/e7710ad7953ab4ade68c6d5c83dff7c3c39010f7f951723705a60c63da11545c/687474703a2f2f7068703772656164792e74696d6573706c696e7465722e63682f7068702d6170692d636c69656e74732f72782f62616467652e737667)](https://travis-ci.org/php-api-clients/rx)

Installation
============

[](#installation)

To install via [Composer](http://getcomposer.org/), use the command below, it will automatically detect the latest version and bind it with `^`.

```
composer require api-clients/rx

```

Usage
=====

[](#usage)

Unwrap an observable from a promise:

```
use function ApiClients\Tools\Rx\unwrapObservableFromPromise;

$observable = Observable::fromArray(['a', 'b']);
$promise = resolve($observable);

/**
 * Outputs: ab
 */
unwrapObservableFromPromise($promise)->subscribe(function ($d) {
    echo $d;
});
```

License
=======

[](#license)

The MIT License (MIT)

Copyright (c) 2017 Cees-Jan Kiewiet

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community24

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 59% 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 ~326 days

Recently: every ~407 days

Total

6

Last Release

1714d ago

Major Versions

1.0.0 → 2.0.02017-03-22

PHP version history (2 changes)1.0.0PHP ^7.0

2.3.0PHP ^8 || ^7.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/147145?v=4)[Cees-Jan Kiewiet](/maintainers/WyriHaximus)[@WyriHaximus](https://github.com/WyriHaximus)

---

Top Contributors

[![WyriHaximus](https://avatars.githubusercontent.com/u/147145?v=4)](https://github.com/WyriHaximus "WyriHaximus (49 commits)")[![dependabot-support](https://avatars.githubusercontent.com/u/112581971?v=4)](https://github.com/dependabot-support "dependabot-support (19 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (13 commits)")[![davidwdan](https://avatars.githubusercontent.com/u/4969183?v=4)](https://github.com/davidwdan "davidwdan (1 commits)")[![jsor](https://avatars.githubusercontent.com/u/55574?v=4)](https://github.com/jsor "jsor (1 commits)")

---

Tags

hacktoberfestphpreactphp

### Embed Badge

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

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

###  Alternatives

[react/react

ReactPHP: Event-driven, non-blocking I/O with PHP.

9.1k3.6M63](/packages/react-react)[internal/dload

Downloads binaries.

98142.7k10](/packages/internal-dload)[wyrihaximus/react-child-process-messenger

Messenger decorator for react/child-process

32279.4k4](/packages/wyrihaximus-react-child-process-messenger)[wyrihaximus/react-cron

⏱️ Cronlike scheduler running inside the ReactPHP Event Loop

4050.6k](/packages/wyrihaximus-react-cron)[mention/retry

A Retry library for PHP

1324.5k](/packages/mention-retry)[llm/mcp-server

PHP SDK for building MCP servers

431.1k](/packages/llm-mcp-server)

PHPackages © 2026

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