-
Notifications
You must be signed in to change notification settings - Fork 6k
[PHP] Support for customizing namespace and Composer fields #977
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Here is an example of what this PR allows, given the petstore 2.0 spec: Given this config json...
... this is the swagger-codegen output ...
... and this is the file tree of generated output ...
... and this is the composer.json:
|
@wing328 let me know if you need me to elaborate on any of this. |
@who thanks for the PR! I'll review and let you know if I've any questions. |
Unit testing looks good:
Tested with the config json provided and the result also looks good. |
[PHP] Support for customizing namespace and Composer fields
I've improved the configuration file support in the PHP codegen so that composer vendor name, composer project name, composer version, and namespace are all configurable.
Here's the new output of the config-help for php: