https://github.com/ecomdev/reactive-socket
Abstraction for reactive application that rely on socket servers and clients
https://github.com/ecomdev/reactive-socket
php reactive-streams
Last synced: 5 months ago
JSON representation
Abstraction for reactive application that rely on socket servers and clients
- Host: GitHub
- URL: https://github.com/ecomdev/reactive-socket
- Owner: EcomDev
- License: mit
- Created: 2018-06-29T10:09:39.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-24T09:49:28.000Z (over 7 years ago)
- Last Synced: 2025-02-26T02:48:12.164Z (about 1 year ago)
- Topics: php, reactive-streams
- Language: PHP
- Size: 74.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Reactive Sockets Abstraction
Abstraction over sockets in applications to make code more testable and portable across various reactive frameworks.
[](https://travis-ci.com/EcomDev/reactive-socket)
[](https://codeclimate.com/github/EcomDev/reactive-socket/maintainability)
[](https://codeclimate.com/github/EcomDev/reactive-socket/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
```bash
composer require ecomdev/reactive-socket
```
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details