programster/swagger

Package creating swagger documentation.

3.1.1 2024-01-22 17:28 UTC

This package is auto-updated.

Last update: 2024-11-22 19:42:54 UTC


README

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