Skip to content

koolob/serverx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

serverx

a php server framework

a http server:

$config = new \Serverx\Conf\ServerConfig();
$config->setHost('0.0.0.0');
$config->setPort('8080');
$config->setDaemonize(0);
$config->setRunDir(__DIR__);
$config->setLogDir(__DIR__ . '/logs');
$config->setLogLevel();
$config->setMaxRequest(10000);
$config->setDispatchMode(3);
$config->registerApp('App', __DIR__);
$server = new \Serverx\Serv\HttpServer($config);
//$server->addHandleTypes(\Serverx\Serv\HttpServer::HANDLE_TYPE_HTTP, array(
//    'system.health',
//    'system.status',
//));
$server->run();

About

a php server framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages