zircote/swagger-php

A php swagger annotation and parsing library

View on GitHub ↗Jump to charts ↓Open shareable report →

Data as of . Signed-in members get hourly updates — create a free account.

Summary Information

Updated 2 hours ago
Type:Library / SDKCategory(s):API Development ToolsDeveloper Tools
Added to GitGenius on September 12th, 2026
Created on March 24th, 2012
Open Issues & Pull Requests: 11 (+0)
GitHub issues: Enabled
Number of forks: 935
Total Stargazers: 5,307 (+0)
Total Subscribers: 92 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 13.8 hours
Mean response time: 27.3 days
90th percentile: 60.9 days
Tracked items: 150

Maintainer activity

1 person did triage or write work on this repository in the last 12 months.

Counts unlabeled, assigned, unassigned, milestoned, demilestoned, locked, unlocked over the last 12 months. These are issue and pull request events that require triage or write permission. Commits and code review are not counted. labeled and renamed are excluded because GitHub issue forms record the issue author as the actor. Figures from October 11, 2026. This count is not comparable across projects: each project's automation decides which of these events a person emits.

How this project is maintained

About 4% of issues opened in the past year have never received a reply. 94% of issues opened in the past year have since been closed. Three people close 87% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 9
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 686 days
Stale 30+ days: 7
Stale 90+ days: 7

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • enhancement (39)
  • bug (20)
  • question (20)
  • type handling (17)
  • documentation (16)
  • OpenApi 3.1.0 (4)
  • wontfix (1)

Most active issues this week

Sign in to see which issues are moving.
Sign in

Detailed Description

Swagger-php is a PHP library that generates OpenAPI documentation from PHP attributes or doctrine annotations.

The tool solves the problem of keeping API documentation in sync with code by extracting metadata directly from PHP source files. Developers annotate their classes, methods, and other structural elements with OpenAPI attributes or doctrine annotations, and the library parses these annotations to generate a complete OpenAPI specification. The library supports OpenAPI 3.0, 3.1, and 3.2 specifications and can resolve complex types using the symfony/type-info library. It offers both programmatic and command-line interfaces for generating documentation as static YAML or JSON files.

Teams should adopt this tool if they maintain RESTful APIs in PHP and want documentation that stays current with code changes. It works well for projects where developers are already familiar with PHP attributes or annotations. The tool requires PHP 8.2 or later. Doctrine annotations are now optional and must be installed separately if needed. The library includes a beta spec attributes pipeline that provides an alternative processing mode with typed data transfer objects and version-aware compilers, available through hybrid mode for gradual migration from existing code.

The project maintains active development with regular updates to support new OpenAPI versions and PHP features. The codebase includes comprehensive error reporting with hints and context to guide users through configuration issues. A beta processing pipeline demonstrates ongoing architectural evolution, offering users an optional path to modernized internals without requiring immediate migration. The tool provides both classic and hybrid processing modes, allowing teams to adopt new features incrementally alongside existing implementations.