Download the PHP package th3mouk/openapi-generator without Composer
On this page you can find all versions of the php package th3mouk/openapi-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download th3mouk/openapi-generator
More information about th3mouk/openapi-generator
Files in th3mouk/openapi-generator
Package openapi-generator
Short Description PHP library which provide a scaffolding and generate an OpenAPI file
License MIT
Informations about the package openapi-generator
Open API Generator
This PHP library allows you to cut and organize your HUGE openapi.yml
file, into small slices.
Versioning and deploy your OpenAPI documentation become easier.
Installation
composer require th3mouk/openapi-generator
Usage
Inside your project you can now run additional commands:
vendor/bin/openapi scaffold
vendor/bin/openapi generate
Scaffold
To prepare your project, run the first command scaffold
.
It will create new folders.
Add your schema
I personnaly use Swagger OpenAPI specifications to write my schema.
One example of organization can be :
Generate
The command vendor/bin/openapi generate
take arguments and options to generate the openapi.yml
file.
You can add a path like this vendor/bin/openapi generate /in-this-folder/sub
And it exists a --pretty-json
or -p
option to obtain a human readable file.
Please
Feel free to improve this library.
All versions of openapi-generator with dependencies
ext-json Version *
symfony/yaml Version ^4.1|^5.0
symfony/console Version ^4.1|^5.0
symfony/finder Version ^4.1|^5.0