Main goal is to provide skeleton for contributte/api-router (opens new window) library.
- latest PHP 7.4 & 8.0
To install latest version of
contributte/api-router-skeleton use Composer (opens new window).
composer create-project -s dev contributte/api-router-skeleton acme
Start PHP development server via
And take a look at:
- [GET] http://localhost:8000/api/ping (opens new window)
- [POST] http://localhost:8000/api/login (opens new window)
# Get Started
IPresenterin endpoints (
App\Controllers\LoginController) instead of extending
JsonResponse, just to make it more simple to add more custom headers and so on
ApiResponseFormatterfor formatting succes message, payload data or and exception
See how to contribute (opens new window) to this package.
This package is currently maintaining by these authors.
Consider to support (opens new window) contributte development team. Also thank you for using this package.