zircote/swagger-php
Generate OpenAPI 3.0/3.1/3.2 docs from PHP 8.2+ code using attributes (preferred) or legacy Doctrine annotations. Includes CLI and programmatic APIs, extracts phpdoc metadata, provides helpful error reporting, and outputs ready-to-use specs.
swagger-php generates OpenAPI documentation for REST APIs by scanning your PHP code. It prefers modern PHP 8 attributes (Doctrine annotations are supported but deprecated) and can output specs for OpenAPI 3.0/3.1/3.2 via CLI or programmatic use.
Designed to keep docs close to implementation, it extracts metadata from attributes and existing phpdoc, reports errors with context, and integrates easily into build pipelines.
openapi) and Generator API availableHow can I help you explore Laravel packages today?