PHPackages                             ecomdev/reactive-socket - 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. ecomdev/reactive-socket

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

ecomdev/reactive-socket
=======================

Abstraction for reactive application that rely on sockets

1.1.1(7y ago)1571MITPHPPHP ^7.1

Since Jul 14Pushed 7y agoCompare

[ Source](https://github.com/EcomDev/reactive-socket)[ Packagist](https://packagist.org/packages/ecomdev/reactive-socket)[ RSS](/packages/ecomdev-reactive-socket/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (5)Versions (6)Used By (1)

Reactive Sockets Abstraction
============================

[](#reactive-sockets-abstraction)

Abstraction over sockets in applications to make code more testable and portable across various reactive frameworks.

[![Build Status](https://camo.githubusercontent.com/06232f04819cb1bcd065a97bfa199a38065441b17d252d13b265261d016cbd24/68747470733a2f2f7472617669732d63692e636f6d2f45636f6d4465762f72656163746976652d736f636b65742e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/EcomDev/reactive-socket)[![Maintainability](https://camo.githubusercontent.com/e27dc5790ce8e7f79612747648bdcd5139d1943aabdba02fb2eb02bbeadb3728/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f63343736623633636437306338363161376661632f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/EcomDev/reactive-socket/maintainability)[![Test Coverage](https://camo.githubusercontent.com/bb3c08b4f531364a95fa9ea9cd70c85a7da6d878c6450487c29e6b6295cf6eae/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f63343736623633636437306338363161376661632f746573745f636f766572616765)](https://codeclimate.com/github/EcomDev/reactive-socket/test_coverage)

Why do you need it?
-------------------

[](#why-do-you-need-it)

Testing async applications in ReactPHP and similar frameworks can be very cumbersome. Also your code is tightly bound to the framework you base your code on. This library provide complete abstraction of stream from react and gives a possibility to switch to another framework at any point in time. Just implement custom `EventEmitter` in your favorite framework and you are done.

Even more you can combine multiple emitters in multi-process application, e.g. http server using libuv and ipc (socket pairs) using simple stream-select.

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

[](#installation)

```
composer require ecomdev/reactive-socket
```

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

Established project with proven stability

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

Total

4

Last Release

2760d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/190d12eae43e0d874394cbc7fc49ea94c6b6e1bc8b05f75b94fbd0b9c4b5d15f?d=identicon)[IvanChepurnyi](/maintainers/IvanChepurnyi)

---

Top Contributors

[![IvanChepurnyi](https://avatars.githubusercontent.com/u/866758?v=4)](https://github.com/IvanChepurnyi "IvanChepurnyi (27 commits)")

---

Tags

phpreactive-streams

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/ecomdev-reactive-socket/health.svg)

```
[![Health](https://phpackages.com/badges/ecomdev-reactive-socket/health.svg)](https://phpackages.com/packages/ecomdev-reactive-socket)
```

###  Alternatives

[justcoded/wordpress-theme-boilerplate

WordPress theme boilerplate with better code structure and OOP support.

563.9k1](/packages/justcoded-wordpress-theme-boilerplate)

PHPackages © 2026

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