Edit Web Server


There is an jphp extension to develop web servers (http and https).

Usage

use php\webserver\WebRequest;
use php\webserver\WebResponse;
use php\webserver\WebServer;

$server = new WebServer(function (WebRequest $request, WebResponse $response) {
    echo "Hello World!";
});

$server->run(); // http://localhost:8080