Rest Server
Create RESTFull services with different and customizable output handlers (JSON, XML, Html, etc.). Auto-Generate routes from swagger.json definition.
Documentation
Setup:
Creating and customizing routes:
- Defining Route Names
- Create Routes using Closures
- Create Routes Manually
- Create Routes using PHP Attributes
- Auto-Generate from an OpenApi definition (hot)
Processing the request and output the response:
Advanced:
Additional topics:
- Mock Testing
- Route Metadata
- Content Negotiation
- Custom HTTP Status Codes
- CSV Endpoint Example
- PSR-7 Adapters
Installation
composer require "byjg/restserver"