Download Latest Version 7.6.0 source code.zip (452.5 kB)
Home / 7.6.0
Name Modified Size InfoDownloads / Week
Parent folder
7.6.0 source code.tar.gz 2026-11-12 246.5 kB
7.6.0 source code.zip 2026-11-12 452.5 kB
README.md 2026-11-12 5.7 kB
Totals: 3 Items   704.8 kB 0

7.6 adds a parser for OpenAPI 3.1 documents. With it, Builder::withDocument() adds a hand-written document to what the attributes describe, for example webhooks with no PHP code behind them. Plugins can now also be found through the packages installed, and a spec build no longer parses PHP files.

Two changes affect the generated document or the log. Changed output in 7.6 has the details.

Changed output

  • Classic and hybrid: a trait imported through a grouped use now adds its properties. Before, they were missing, with a warning. Thanks @vencakrecl (#2392)
  • Spec and hybrid: validation messages from different checks come out mixed, since the checks now run in one pass (#2367)

New

  • OpenApi\Parser reads an OpenAPI 3.1 document into a Specification, and Builder::withDocument() adds one to a spec or hybrid build. Where both describe the same thing, the attributes win. Only 3.1 documents are supported (#2387, docs, cookbook)
  • Builder::withDiscoveredPlugins() adds the plugins installed packages declare in their Composer metadata. It is opt-in (#2385, docs)
  • Parameter, RequestBody, Response, Header, Link and Security\Scheme take a summary, written beside a $ref from 3.1 on (#2389)

Changed

  • AttributeFactory takes any SourceInspectorInterface. The default SourceInspector tells a class's own members by reflection, so a spec build parses no PHP. A subclass reading $tokenScanner gets the interface (#2373, #2374, docs)
  • A subclass declaring its own $summary on one of those six attributes needs it as public ?string $summary (#2389)

Deprecated

  • TokenScanner, removed in 8.0. Use SourceInspector (#2388)

Fixed

  • A docblock the type resolver fails on is reported as unsupported, and the build carries on. Before, some ended the build (#2393)
  • composer.json no longer conflicts with symfony/process, which swagger-php does not depend on (#2395)

Performance

  • The validation checks share one walk: validate() at 500 schemas went from 97 to 39 ms (#2367)

What's Changed

New Contributors

Full Changelog: https://github.com/zircote/swagger-php/compare/7.5.0...7.6.0

Source: README.md, updated 2026-11-12