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.
v6 is mostly a cleanup release, with updated dependencies. The main changes are:
radebatz/type-info-extras is now a required dependencyTypeInfoTypeResolver now properly handles composite types (unions and intersections)MediaType::encoding property now only accepts Encoding objects (BC break)--processor to --add-processor (-a)--remove-processor (-r)For most installations upgrading should not require any changes.
With radebatz/type-info-extras now being a required dependency, the TypeInfoTypeResolver is now the de-facto default
resolver.
The LegacyTypeResolver can still be used as a drop-in replacement, but is now marked deprecated and will be removed
in v7.
\Openapi\Generator::getProcessors() and \Openapi\Generator::setProcessors()Use getProcessorPipeline() and setProcessorPipeline(new Pipeline(...)) methods instead
\Openapi\Generator::scan()Main entry point into the Generator is now the non-static generate() method:
(new Generator())->generate(/* ... */);
Utils helperMost methods in the class were internal to start with and the Util::finder() factory methods is now replaced with
the new SourceFinder class.
How can I help you explore Laravel packages today?