Daniel Schreiber 2217a7b0f2
feat: simple/experimental generator for flight-php server framework (#18406)
* 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
2024-04-21 23:56:59 +08:00

498 B

Requirements

PHP 8.1 and later

Installation & Usage

  1. Set up flight as usual - see Flight documentation
  2. Generate using the OpenAPI generator
  3. 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.
  4. Register routes for your subclassed apis: RegisterRoutes::registerRoutes(new MyApiHandler());