ecomdev / reactive-socket
Abstraction for reactive application that rely on sockets
Requires
- php: ^7.1
Requires (Dev)
- brainmaestro/composer-git-hooks: ^2.4
- ecomdev/socket-tester: ^1.0
- phpmd/phpmd: ^2.6
- phpunit/phpunit: ^7.0
- squizlabs/php_codesniffer: ^3.3
This package is auto-updated.
Last update: 2024-11-27 21:26:07 UTC
README
Abstraction over sockets in applications to make code more testable and portable across various reactive frameworks.
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