upscale / http-server-skeleton
Skeleton of RESTful API with request parsing, routing, and dependency injection
Installs: 12
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 1
Open Issues: 0
Type:project
Requires
- php: ~5.6 || ~7.0
- upscale/http-server-engine: ~2.0
This package is auto-updated.
Last update: 2024-10-18 06:56:54 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.