OpenAPI conformant
Generate OpenAPI documents in version 3.0 or 3.1.
> composer require zircote/swagger-php
Add swagger-php
attributes (or legacy annotations) to your source code.
⚠️ doctrine/annotations
is going to be deprecated in the future, so wherever possible attributes should be used.
> ./vendor/bin/openapi src -o openapi.yaml
Use an OpenAPI tool like Swagger UI to explore and interact with your API.