upscale / http-server-skeleton
具有请求解析、路由和依赖注入的RESTful API骨架
2.0.0
2016-09-19 03:04 UTC
Requires
- php: ~5.6 || ~7.0
- upscale/http-server-engine: ~2.0
This package is auto-updated.
Last update: 2024-09-18 06:39:38 UTC
README
这是一个具有请求解析、路由和依赖注入能力的裸骨RESTful API骨架。它定义了目录结构、路由配置和启动服务器的入口点。
安装
通过 Composer 安装到您选择的目录(例如,/tmp/rest-api-project
)
composer create-project --no-dev upscale/http-server-skeleton /tmp/rest-api-project
通过PHP的内置Web服务器启动服务器
php -S 127.0.0.1:8080 /tmp/rest-api-project/server.php
在浏览器中打开 http://127.0.0.1:8080 以确认服务器正在运行。
性能
该项目由轻量级的 HTTP服务器引擎 驱动,致力于速度和简约。
许可证
遵循 Apache许可证,版本2.0。