PHP code example of gemblue / php-websocket
1. Go to this page and download the library: Download gemblue/php-websocket library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
gemblue / php-websocket example snippets
composer
sudo chmod +x ./vendor/gemblue/php-websocket/bin/server
./vendor/gemblue/php-websocket/bin/server port:3000