PHP code example of connor / swoole-glue

1. Go to this page and download the library: Download connor/swoole-glue 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/ */

    

connor / swoole-glue example snippets


//安装配置
php bin/SwooleGlue.php install 

实现SwooleGlue\Component\PServerlet类,在这里做业务处理,并在配置文件中配置实现后的 PServerlet类


启动server
php bin/SwooleGlue.php start