Download the PHP package waffler/opengen without Composer
On this page you can find all versions of the php package waffler/opengen. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download waffler/opengen
More information about waffler/opengen
Files in waffler/opengen
Package opengen
Short Description Waffler client generator using openapi specs
License MIT
Informations about the package opengen
Waffler OpenAPI Code Generator
This package reads an open api file (like swagger) and generates ready-to-use waffler interfaces.
Supported OpenApi specs:
Name | Version |
---|---|
Swagger | 2.0 |
Open Api | 3.0.x |
How to install
This package requires PHP 8 or above.
How to use
Generation options:
Option: interface_suffix
:
Adding this option, you can modify the ClientInterface
interface suffix.
- Type:
string
Example code:
Option: ignore
:
Adding this option, you can specify elements to ignore in the code generation. Available items to ignore are:
parameters
methods
Example code:
Option: ignore.parameters
:
Adding this option, you can specify which parameter types you want to ignore in the code generation. Available parameter types are:
header
query
path
formData
Example code:
Option: ignore.methods
:
Adding this option, you can specify which method names you want to ignore in the code generation.
The method names are the operationId
in openapi spec files.
Example code:
Option: remove_method_prefix
:
Adding this option, you can remove the prefix of operationIds from code generation. In the example below, we`ll
Example code:
All versions of opengen with dependencies
waffler/waffler Version ^1.1.1
cebe/php-openapi Version ^1.6.0
symfony/filesystem Version ^6.0
nette/php-generator Version ^3.6