Skip to content
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

[PHP] Add PHP server generator "ze-ph" (Zend Expressive + Path Handler) #4559

Merged
merged 2 commits into from
Jan 15, 2017
Merged

Conversation

Articus
Copy link
Contributor

@Articus Articus commented Jan 15, 2017

PR checklist

  • [+] Read the contribution guildelines.
  • [+] Ran the shell/batch script under ./bin/ to update Petstore sample so that CIs can verify the change. (For instance, only need to run ./bin/{LANG}-petstore.sh and ./bin/security/{LANG}-petstore.sh if updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates)
  • [+] Filed the PR against the correct branch: master for non-breaking changes and 2.3.0 branch for breaking (non-backward compatible) changes.

Description of the PR

New PHP server stub generator using Zend Expressive and Path Handler.

@wing328 wing328 added this to the v2.2.2 milestone Jan 15, 2017
@wing328 wing328 merged commit 4001503 into swagger-api:master Jan 15, 2017
@wing328
Copy link
Contributor

wing328 commented Jan 15, 2017

@Articus thanks for the contribution. The PR looks good to me.

2 minor suggestions:

  • create a new branch instead of using master as per git best practices
  • update README.md.mustache with instruction on how to run the generated-code

)

REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M
set ags=generate -i modules\swagger-codegen\src\test\resources\2_0\petstore.json -l ze-ph -o samples\client\petstore\ze-ph
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI. I'll update this line to use modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml and output the generated code under samples\server\petstore\ze-ph instead

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, thanks for noticing) And sorry for not checking this "copy-paste" from bin/windows/php-petstore.bat thoroughly. For actual testing I used IDEA's "Run/Debug configuration".

@wing328
Copy link
Contributor

wing328 commented Jan 15, 2017

cc @arnested

@wing328
Copy link
Contributor

wing328 commented Jan 16, 2017

Tweet: https://twitter.com/wing328/status/820995831058735105

Please help retweet.

I also updated README (swagger codegen) to list you as the template creator.

@wing328 wing328 changed the title PHP server generator ze-ph (Zend Expressive + Path Handler) [PHP] Add PHP server generator "ze-ph" (Zend Expressive + Path Handler) Feb 21, 2017
davidgri pushed a commit to davidgri/swagger-codegen that referenced this pull request May 11, 2017
…api#4559)

* Server generator ze-ph (Zend Expressive + Path Handler)

* Command line scripts for new ze-ph generator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants