byjg / restserver
Create RESTFull services with different and customizable output handlers (JSON, XML, Html, etc.). Auto-Generate routes from swagger.json definition.
Fund package maintenance!
byjg
Installs: 39 948
Dependents: 5
Suggesters: 0
Security: 0
Stars: 3
Watchers: 5
Forks: 2
Open Issues: 0
Requires
- php: >=8.1 <8.4
- ext-json: *
- byjg/cache-engine: ^5.0
- byjg/jwt-wrapper: ^5.0
- byjg/serializer: ^5.0
- byjg/singleton-pattern: ^5.0
- byjg/webrequest: ^5.0
- filp/whoops: ^2.14
- nikic/fast-route: v1.3.*
- psr/log: ^1.0|^2.0|^3.0
Requires (Dev)
- monolog/monolog: ^2.9|^3.4
- phpunit/phpunit: 5.7.*|7.4.*|^9.6
- vimeo/psalm: ^5.9
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 Manually
- Create Routes using PHP Attributes
- Auto-Generate from an OpenApi definition (hot)
Processing the request and output the response:
Advanced:
Installation
composer require "byjg/restserver"