jane-php/open-api-runtime
Runtime dependencies and utility classes used by clients generated with Jane OpenAPI. Provides shared infrastructure for request/response handling, serialization, and other common helpers so generated SDKs work consistently without duplicating code.
jane openapi:generate --spec=api.yaml --output=src/Generated.composer require jane-php/open-api-runtime
src/Generated/Client.php).$client = new \Generated\Client(new \GuzzleHttp\Client());
$this->app->singleton(\Generated\Client::class, function ($app) {
return new \Generated\Client($app->make(\GuzzleHttp\Client::class));
});
$response = app(\Generated\Client::class)->getPetById(1);
tap() for inspection.| Failure Point | Impact | Mitigation |
|---|---|---|
| Stale OpenAPI Specs | Runtime errors, broken APIs | Automate spec validation in CI/CD. |
| PHP 8+ Incompatibility | Runtime crashes | Fork and backport changes. |
| Network/API Failures | Unhandled exceptions | Implement retries (e.g., Guzzle middleware). |
| Laravel DI Conflicts | Client instantiation failures | Use explicit bindings in service provider. |
| Missing Error Handling | Poor observability | Wrap calls in try-catch with logging. |
How can I help you explore Laravel packages today?