# swagger-php

PHP library that generates OpenAPI documentation from PHP attributes and PHPDoc annotations in the source code.


Source: https://findsoftware.frbit.cloud/swagger-php/
Last reviewed: 2026-11-16
Listed since: 2026-11-16

## Record

### Links

- home: https://zircote.com/swagger-php/
- repository: https://github.com/zircote/swagger-php
- docs: https://zircote.com/swagger-php/

### Identity

- status: active
- maintainer: Robert Allen
- maintainerType: individual
- parent: unknown
- firstRelease: 2012
- hqCountry: unknown

### Kind

- category: backend
- hosting: php
- language: php
- runtime: php
- runtimeMin: php 8.2
- basedOn: unknown

### Content

- contentStore: unknown
- databases: unknown
- adminUi: unknown
- headlessApi: unknown
- templating: unknown
- i18n: unknown

### Rendering and deploy

- runsAs: unknown
- renderingModes: unknown
- installMethod: composer

### License

- licenseModel: open-source
- license: Apache-2.0

### Releases

- currentMajor: 7
- latestReleaseDate: 2026-11-12

### Adoption

- githubStargazers: 5302
- packagistDownloads: 167411831
- npmWeeklyDownloads: not applicable
- contributors: 150
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 4798
- dependentPackages: 377

### Sources

- name: https://raw.githubusercontent.com/zircote/swagger-php/7.6.0/README.md (read 2026-11-16)
- urls: https://zircote.com/swagger-php/ (read 2026-11-16)
- urls: https://api.github.com/repos/zircote/swagger-php (read 2026-11-16)
- urls: https://zircote.com/swagger-php/ (read 2026-11-16)
- firstRelease: https://api.github.com/repos/zircote/swagger-php/commits/0.1.0 (read 2026-11-16)
- maintainer: https://raw.githubusercontent.com/zircote/swagger-php/7.6.0/composer.json (read 2026-11-16)
- maintainerType: https://raw.githubusercontent.com/zircote/swagger-php/7.6.0/composer.json (read 2026-11-16)
- language: https://api.github.com/repos/zircote/swagger-php (read 2026-11-16)
- category: https://zircote.com/swagger-php/ (read 2026-11-16)
- runtime: https://raw.githubusercontent.com/zircote/swagger-php/7.6.0/README.md (read 2026-11-16)
- runtimeMin: https://raw.githubusercontent.com/zircote/swagger-php/7.6.0/composer.json (read 2026-11-16)
- installMethod: https://raw.githubusercontent.com/zircote/swagger-php/7.6.0/README.md (read 2026-11-16)
- license: https://api.github.com/repos/zircote/swagger-php (read 2026-11-16)
- licenseModel: https://raw.githubusercontent.com/zircote/swagger-php/7.6.0/LICENSE (read 2026-11-16)
- currentMajor: https://api.github.com/repos/zircote/swagger-php/releases (read 2026-11-16)
- latestReleaseDate: https://api.github.com/repos/zircote/swagger-php/releases (read 2026-11-16)
- githubStargazers: https://api.github.com/repos/zircote/swagger-php (read 2026-11-16)
- contributors: https://api.github.com/repos/zircote/swagger-php/contributors?per_page=1 (read 2026-11-16)
- packagistDownloads: https://packagist.org/packages/zircote/swagger-php.json (read 2026-11-16)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/packagist.org/packages/zircote%2Fswagger-php (read 2026-11-16)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/packagist.org/packages/zircote%2Fswagger-php (read 2026-11-16)

## Notes

swagger-php is a PHP library that generates OpenAPI documentation from PHP attributes and from existing PHPDoc comments in the source code. It can be used from PHP code or through the `openapi` command line interface that ships with the package.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
