szemul / openapi-client-generator
A tool to generate a PHP client out of an openapi documentation
Installs: 1 583
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 2
Requires
- php: >=8.1
- ext-iconv: *
- ext-json: *
- emulgeator/array-to-class-mapper: ^0.1|^1.0
- emulgeator/enum: ^1.0
- friendsofphp/php-cs-fixer: ^3.9
- nesbot/carbon: ^2.0
- php-di/php-di: ^6.3
- psr/container: ^1.0
- symfony/console: ^6.2
- symfony/yaml: ^6.2
Requires (Dev)
- mockery/mockery: ^1.4
- phpunit/phpunit: ^10.0
- psr/http-client: ^1.0
- psr/http-factory: ^1.0
- psr/http-message: ^1.0
- dev-master
- 4.1.0
- 4.0.0
- 3.1.1
- 3.1.0
- 3.0.3
- 3.0.2
- 3.0.1
- 3.0
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2
- 2.1.2
- 2.1.1
- 2.1
- 2.0
- 1.0
- dev-add-request-data-to-exceptions
- dev-proper-nullable-handling
- dev-array-class-mapper-upgrade
- dev-add-nullable-support
- dev-raw-response-getter
- dev-request-param-name-fix
- dev-model-parameter-name-fix
- dev-url-overwrite
- dev-complex-request-param
- dev-general-response-default
- dev-inline-response-model
- dev-action-param-fix
- dev-handling-special-cases
- dev-request-param-reference
- dev-alternative-auth
- dev-20-actionparameter-classes-should-have-an-interface-to-implement
- dev-api-action-exception-doc
- dev-17-handle-nullable-property
- dev-multiple-response
- dev-string-helper-fix
- dev-bugfix
- dev-all_of_handling
- dev-property-support
This package is auto-updated.
Last update: 2024-10-26 09:36:43 UTC
README
A tool to generate a PHP client out of an openapi documentation
Currently only supports json format as a source.
Usage
Run src/generator.php
to generate the client. See it's help page
Limitations
- Currently, only supports Json payloads
- Requires all paths to have a
tag
and anoperationId
defined - Requires all properties to have a
type
defined