kentczhy / swsocket
easy to set up websocket by swoole
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/kentczhy/swsocket
Requires
- php: ^7.1
- predis/predis: ^1.1
Requires (Dev)
- ext-phar: *
This package is auto-updated.
Last update: 2025-11-08 23:07:35 UTC
README
This library provides a way of easy to set up websocket.
Installation
The suggested installation method is via composer:
composer require "kentczhy/swsocket"
Usage
PHP extension Swoole > 4.2.0 needs to be installed
config/app.php
\Kentczhy\Swsocket\Providers\SwsocketServiceProvider::class
# add config swsocket.php and copy html test file php artisan vendor:publish # start server php artisan swoole:server