upscale/http-server-skeleton

Skeleton of RESTful API with request parsing, routing, and dependency injection

2.0.0 2016-09-19 03:04 UTC

This package is auto-updated.

Last update: 2024-04-18 05:54:23 UTC


README

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.

Installation

Install via Composer to a directory of your choice (say, /tmp/rest-api-project):

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.

Performance

The project is powered by the lightweight HTTP server engine committed to speed and minimalism.

License

Licensed under the Apache License, Version 2.0.