1. Go to this page and download the library: Download ernestdefoe/parley 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/ */
ernestdefoe / parley example snippets
'websocket' => [
'server-host' => '0.0.0.0',
'server-port' => 6001,
// What browsers connect to: your forum's own hostname, on 443, secure.
'js-client-host' => 'forum.example.com',
'js-client-port' => 443,
'js-client-secure' => true,
// What PHP connects to: the server itself, plain.
'php-client-host' => '127.0.0.1',
'php-client-port' => 6001,
'php-client-secure' => false,
],