Skeleton of RESTful API with request parsing, routing, and dependency injection
This is a skeleton of a bare-bones RESTful API wired with request parsing, routing, and dependency injection capabilities. It defines the directory structure, router configuration, and the entry point that bootstraps the server.
Install via Composer to a directory of your choice (say,
composer create-project --no-dev upscale/http-server-skeleton /tmp/rest-api-project
Launch the server via the PHP's built-in web server:
php -S 127.0.0.1:8080 /tmp/rest-api-project/server.php
Open http://127.0.0.1:8080 in a browser to confirm the server is running.
The project is powered by the lightweight HTTP server engine committed to speed and minimalism.
Licensed under the Apache License, Version 2.0.