Download the PHP package jeandonaldroselin/php-openapi-generator without Composer
On this page you can find all versions of the php package jeandonaldroselin/php-openapi-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jeandonaldroselin/php-openapi-generator
More information about jeandonaldroselin/php-openapi-generator
Files in jeandonaldroselin/php-openapi-generator
Package php-openapi-generator
Short Description Jean-Donald Roselin's PHP Openapi Generator - generates PHP API clients from OpenAPI specs and installs them into a Composer project's vendor directory.
License MIT
Informations about the package php-openapi-generator
Jean-Donald Roselin's PHP Openapi Generator
Turn an OpenAPI spec into a ready-to-use PHP client, autoloaded straight from your project.
Quick start
1. Describe your client in openapi-generator.json at your project root:
2. Generate it:
That's it — the client is generated into .generated/billing/, autoloaded via your project's own
composer.json, ready to use:
Add .generated/ to your project's .gitignore — it's a build artifact regenerated from your
spec(s), not something to commit.
This also registers a post-install-cmd/post-update-cmd script, so any future composer install — a teammate's machine, CI, a Docker build — regenerates the client automatically. A
plain composer install on a completely fresh checkout just works, no manual step needed.
Need several clients? Add more entries to the clients array — one command generates and wires
up all of them. Settings like generator_name, openapi_generator_version,
additional_properties and generated_path can be set once at the root of the file and
overridden per client (see EXPLANATIONS.md).
Options
--config=path.json · --client=name · --generator-version=X · --skip-install ·
--force-download · --force (-f) · --no-scripts
Want to know what happens under the hood (caching, namespace conflicts, project-wide config, etc.)? Everything is explained in EXPLANATIONS.md.
All versions of php-openapi-generator with dependencies
ext-json Version *
symfony/console Version ^6.0 || ^7.0
symfony/process Version ^6.0 || ^7.0
symfony/filesystem Version ^6.0 || ^7.0
symfony/yaml Version ^6.0 || ^7.0
symfony/http-client Version ^6.0 || ^7.0