PHP code example of iboxs / iboxs-worker
1. Go to this page and download the library: Download iboxs/iboxs-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/ */
iboxs / iboxs-worker example snippets
define('APP_PATH', __DIR__ . '/application/');
define('BIND_MODULE','index/Worker');
// 加载框架引导文件
.php start|stop|status|restart|reload
~~~
在浏览器中进行客户端测试
http://127.0.0.1:2346/?id=1
### HttpServer
在应用根目录创建server.php
~~~
{
$this->app->worker($connection, $data);
}