OpenAPI conformant
Generate OpenAPI documents in version 3.0, 3.1 or 3.2.
> composer require zircote/swagger-phpAdd swagger-php attributes (or legacy annotations) to your source code.
⚠️ The doctrine/annotations library used to parse annotations is going to be deprecated, so wherever possible attributes should be used.
spec mode
As of version 6.5.0, a new set of attributes has been introduced - the spec attributes. When using those, the mode needs to be set to spec in order to generate OpenAPI documents.
> ./vendor/bin/openapi -m spec ...> ./vendor/bin/openapi src -o openapi.yamlUse an OpenAPI tool like Swagger UI or Scalar to explore and interact with your API.