A WebSocket/Socket message Router for PHP
- PHP >= 8.0
- OpenSwoole PHP Extension
composer require kanata-php/socket-conveyor
This package enables you to work with socket messages using routing strategy. It comes with some solutions such as channel or action listeners, but you can implement your own by extending the AbstractAction
.
This package is built with OpenSwoole in mind, but it works with any websocket implementation. Please open a Github Issue if you find any! You can find out more how to use WebSockets with OpenSwoole here.
This package has 2 clients:
- JS Client : npm package from frontend integration: https://www.npmjs.com/package/socket-conveyor-client.
- PHP Client: composer package for backend integration: https://packagist.org/packages/kanata-php/conveyor-server-client
Run Command:
./vendor/bin/phpunit
👤 Savio Resende
- Website: https://savioresende.com
- GitHub: @lotharthesavior
Copyright © 2022 Savio Resende.
This project is MIT licensed.