/package-swagger

PHP package to simplify the generation of swagger JSON documentation.

Primary LanguagePHPMIT LicenseMIT

A PHP package to simplify the generation of OpenAPI 3.0.3 specification documents. This package used to generate swagger documents, before OpenAPI became "the standard".

The specification for OpenAPI 3.0.3, which this package adheres to, is available online.

Validation

You may wish to install the swagger-cli tool in order to perform validation. One can install the tool with:

npm install -g @apidevtools/swagger-cli

Once the tool is installed, validate your document with:

swagger-cli validate /path/to/swagger.json