Registry / serialization / exsyst-swagger

exsyst-swagger

JSON →
library0.4.2phppackagistunverified

A php library to manipulate Swagger specifications

composer require exsyst/swagger
INSTALL
IMPORT
SIG · EXSYST-SWAGGER
E
exsyst-swagger
serializationphpv0.4.2
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.

Swagger
use ExSyst\Swagger\Swagger;

Create a Swagger specification object and output as JSON.

use ExSyst\Swagger\Swagger; $swagger = new Swagger(); $swagger->setInfo('My API', '1.0.0'); echo json_encode($swagger->toArray());
Debug
Known issues
breakingOnly supports Swagger 2.0, not OpenAPI 3.0
fix
Use swagger-php or other library for OpenAPI 3.0
affects: >=0.4
Upgrade
Version history
0.4.2latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Resources
exsyst-swagger — pip install exsyst-swagger · libregistry