Skip to content

To better understand Swoole's Web server implementation, use native PHP to simulate its functionality.

Notifications You must be signed in to change notification settings

chinawilon/wilon-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wilon-server

Mock swoole server(tcp/udp) style for programming.

Example

$server = new Wilon\Server('0.0.0.0', 8080);

// configuration
$server->set(['worker_num' => 4]);

// events
$server->on('WorkerStart', function(){});
$server->on('connect', function(){});
$server->on('close', function(){});
$server->on('receive', function(){});

// start server
$server->start();

About

To better understand Swoole's Web server implementation, use native PHP to simulate its functionality.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages