ecomdev/reactive-socket

Abstraction for reactive application that rely on sockets

1.1.1 2018-10-24 09:46 UTC

This package is auto-updated.

Last update: 2024-04-27 20:18:29 UTC


README

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

Build Status Maintainability Test Coverage

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

composer require ecomdev/reactive-socket

License

This project is licensed under the MIT License - see the LICENSE file for details