byjg / restserver
Create RESTFull services with different and customizable output handlers (JSON, XML, Html, etc.). Auto-Generate routes from swagger.json definition.
Installs: 35 549
Dependents: 4
Suggesters: 0
Security: 0
Stars: 3
Watchers: 5
Forks: 1
Open Issues: 1
Requires
- php: >=7.4
- ext-json: *
- byjg/cache-engine: 4.9.*
- byjg/jwt-wrapper: 4.9.*
- byjg/serializer: 4.9.*
- byjg/singleton-pattern: 4.9.*
- byjg/webrequest: 4.9.*
- filp/whoops: ^2.14
- nikic/fast-route: v1.3.*
Requires (Dev)
- phpunit/phpunit: 5.7.*|7.4.*|^9.6
Suggests
- ext-fileinfo: *
README
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 using Classes
- Auto-Generate from an OpenApi definition (hot)
Processing the request and output the response:
Advanced:
Installation
composer require "byjg/restserver"
Dependencies
flowchart TD byjg/restserver --> byjg/serializer byjg/restserver --> byjg/singleton-pattern byjg/restserver --> nikikc/fast-route byjg/restserver --> filp/whoops byjg/restserver --> byjg/cache-engine byjg/restserver --> byjg/webrequest byjg/restserver --> byjg/jwt-wrapper byjg/restserver --> ext-json