mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-28 20:40:52 +00:00
* feat: simple/experimental generator for flight-php server framework * fix: update php-flight samples and add php-flight to integration tests * feat: adding path to method doc
498 B
498 B
Requirements
PHP 8.1 and later
Installation & Usage
- Set up flight as usual - see Flight documentation
- Generate using the OpenAPI generator
- Subclass some/all generated
Abstract*Api
and overwrite the methods you'd like handled. When implementing the*Stream
methods, make sure to stream the response and not implement the non-stream method. - Register routes for your subclassed apis:
RegisterRoutes::registerRoutes(new MyApiHandler());