# swagger-php library 7.0

A new major version of swagger-php, which builds OpenAPI documentation for your REST API from PHP attributes, with hybrid mode now the default.

Spec attributes are now stable. Builder replaces Generator as the entry point. The output is OpenAPI 3.1.0 by default. For most projects the upgrade needs no code changes. A migration guide covers the details.

- Made by: [Martin Rademacher](https://github.com/DerManoMann), [Robert Allen](https://github.com/zircote)
- Shipped: 28/10/2026
- Date from: [release](https://github.com/zircote/swagger-php/releases/tag/7.0.0)
- Source: [github.com/zircote/swagger-php](https://github.com/zircote/swagger-php)
- Docs: [zircote.github.io/swagger-php](https://zircote.github.io/swagger-php/)
- Install: `composer require zircote/swagger-php`
- Licence: Apache-2.0
- Stack: plain PHP
- Topics: APIs
- Checked: 06/11/2026
- Added: 06/11/2026

## Badge

Listed here? Add this badge to your README:

```markdown
[![Featured on phplives.dev](https://phplives.dev/badge.svg)](https://phplives.dev/entries/swagger-php-7-0/)
```

See more at [phplives.dev](https://phplives.dev)
