PHP code example of joanhey / adapterman
1. Go to this page and download the library: Download joanhey/adapterman 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/ */
joanhey / adapterman example snippets
dapterman\Adapterman;
use Workerman\Worker;
Adapterman::init();
$http_worker = new Worker('http://0.0.0.0:8080');
$http_worker->count = 8;
$http_worker->name = 'AdapterMan';
$http_worker->onWorkerStart = static function () {
//init();
server.php start
server.php start -d
server.php status
server.php status -d
server.php connections
server.php stop
server.php stop -g
server.php restart
server.php reload
server.php reload -g
-c cli-php.ini server.php start
.
├── app(dir)
├── public(dir)
├── vendor(dir)
├── composer.json
├── server.php
└── start.php