zircote/swagger-php
swagger-php generates OpenAPI 3.0/3.1/3.2 documentation from your PHP 8.2+ code using attributes (preferred) or optional Doctrine annotations. Use it via CLI or programmatically, with helpful error reporting and a full documentation site.
Collection of code/annotation examples and their corresponding OpenAPI specs generated using swagger-php.
[@OA](https://github.com/OA)\Discriminator[@OA](https://github.com/OA)\WebhooksProcessors implement the various steps involved in converting the annotations collected into an OpenAPI spec.
Writing a custom processor is the recommended way to extend swagger-php in a clean way.
Processors are expected to implement the __invoke() method expecting the current Analysis object as single parameter:
<?php
...
use OpenApi\Analysis;
...
class MyCustomProcessor
{
public function __invoke(Analysis $analysis)
{
// custom processing
}
}
schema-query-parameter processor
A processor that takes a vendor tag (expecting a schema #ref) and injects all properties of that given schema as
query parameter to the request definition.
A processor that sorts components, so they appear in alphabetical order.
How can I help you explore Laravel packages today?