WellRESTed Development Site

To run unit tests, run:

docker-compose run --rm php phpunit

View the code coverage report.

To generate documentation, run:

docker-compose run --rm docs

View documentation.

HTML; return (new Response(200)) ->withHeader('Content-type', 'text/html') ->withBody(new Stream($view)); } } // ----------------------------------------------------------------------------- // Create a new Server instance. $server = new Server(); // Add a router to the server to map methods and endpoints to handlers. $router = $server->createRouter(); // Register the route GET / with an anonymous function that provides a handler. $router->register("GET", "/", function () { return new HomePageHandler(); }); // Add the router to the server. $server->add($router); // Read the request from the client, dispatch a handler, and output. $server->respond();