PHP code example of lruisen / think-worker

1. Go to this page and download the library: Download lruisen/think-worker 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/ */

    

lruisen / think-worker example snippets

shell
php think worker:win start
shell
php think worker:win start
shell
php think worker start           #以调试模式启动服务
php think worker start -d        #以守护进程模式启动服务
php think worker stop            #停止服务
php think worker restart         #重启服务
php think worker reload          #柔性重启服务
php think worker status          #查看服务状态