Create RESTFull services with different and customizable output handlers (JSON, XML, Html, etc.). Auto-Generate routes from swagger.json definition.
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
composer require "byjg/restserver"flowchart TD
byjg/restserver --> byjg/serializer
byjg/restserver --> byjg/singleton-pattern
byjg/restserver --> byjg/cache-engine
byjg/restserver --> byjg/webrequest
byjg/restserver --> byjg/jwt-wrapper