Registry / serialization / zircote-swagger-php

zircote-swagger-php

JSON →
library6.2.0phppackagistunverified

Generate interactive documentation for your RESTful API using PHP attributes (preferred) or PHPDoc annotations

composer require zircote/swagger-php
INSTALL
IMPORT
SIG · ZIRCOTE-SWAGGER-PH
Z
zircote-swagger-php
serializationphpv6.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

OpenApi
use OpenApi\Annotations\OpenApi;

Scan PHP files and generate OpenAPI specification

use OpenApi\Annotations\OpenApi; $openapi = \OpenApi\Generator::scan(['/path/to/project']); file_put_contents('swagger.json', $openapi->toJson());
Debug
Known issues
breakingv6 requires PHP 8.1+ and uses attributes by default
fix
Use PHP 8.1+ and convert annotations to attributes if upgrading from v5
affects: >=6.0
Upgrade
Version history
6.2.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
36 hits · last 30 days
node
32
OpenAI (training)
1
Resources
zircote-swagger-php — pip install zircote-swagger-php · libregistry