szemul / openapi-client-generator
A tool to generate a PHP client out of an openapi documentation
Package info
github.com/szemul/openapi-client-generator
pkg:composer/szemul/openapi-client-generator
4.1.2
2025-10-22 22:22 UTC
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: ^3.8
- 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
This package is auto-updated.
Last update: 2026-05-22 23:36:28 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
tagand anoperationIddefined - Requires all properties to have a
typedefined