Reference
Depending on how custom your requirements are, using swagger-php might be limited to just annotating your code and running the command line tool.
However, swagger-php offers more.
The attributes in the
OpenApi\Specnamespace, read in spec and hybrid mode.The
BuilderThe
\OpenApi\Builderclass is the entry point for generating OpenAPI documents from PHP code.Augmenters enrich the spec-attributes pipeline with inferred data (types, refs, docblocks) before compilation. They run in three groups: resolve, reduce, and augment.
The translators and resolvers the spec pipeline runs by default.
How the spec pipeline decides between two attributes that claim the same key.
How PHP class hierarchy maps to OpenAPI
allOfcomposition (schemas) and path prefix composition (PathItems) in the spec pipeline.
Classic
The classic attributes in the
OpenApi\Attributesnamespace.The
@OAdocblock annotations.The
GeneratorThe
\OpenApi\Generatorclass, used directly or via the Builder'swithGenerator()method.The processors that convert the collected annotation instances into a complete OpenAPI document. Custom processors can be added, and existing ones removed.