1. Go to this page and download the library: Download workerman/channel 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/ */
workerman / channel example snippets
use Workerman\Worker;
//Tcp 通讯方式
$channel_server = new Channel\Server('0.0.0.0', 2206);
//Unix Domain Socket 通讯方式
//$channel_server = new Channel\Server('unix:///tmp/workerman-channel.sock');
if(!defined('GLOBAL_START'))
{
Worker::runAll();
}