34 Commits

Author SHA1 Message Date
Brian Voss
43ab14b200 Adding Curl connect timeout configuration to PHP generation templates (#4500) 2017-01-06 19:14:39 +08:00
wing328
90512e6326 Remove Apache license from API client generators (#4197)
* remove php apache license

* remove apache license from C#

* remove apache license in objc code

* remove license from swift 3 code

* remove apache license from perl code

* remove license from scala code

* remove license from ts, go, android, cpp, scala

* remove license from java api client

* restore clojure petstore files

* remove license from travis file

* clean up apache-related terms in php, ruby, python mustache tempaltes

* remove license from JS API cilent
2016-11-16 21:44:49 +08:00
wing328
0efa5cab35 Revert "[WIP] Improve PHP client emitted code quality" 2016-10-12 16:07:37 +08:00
Dalibor Karlović
19f1c7e095 feature(PHP QA) add initial PHP client template tweaks to improve emitted code quality 2016-09-29 08:48:24 +02:00
Dalibor Karlović
70fa2fb78e [PHP] Better PSR2 compatibility (#3863)
* feature(php-cs-fixer) add php-cs-fixer support

* feature(php-cs-fixer) tweak Mustache templates to fit PSR2

* feature(php-cs-fixer) bin/php-petstore.sh output
2016-09-27 08:23:44 +08:00
Ville Skyttä
91b7494e3e Spelling fixes 2016-09-06 14:45:04 +03:00
Daniel Ge
b16eda17e8 Improve error message for connection failures
Previous ApiException message would simply print out the result of the
`curl_getinfo($curl)` call, which might be useful only if the developer
actually wanted very low-level information from curl about why a call
failed. The new message should print out a higher-level but more
informative, human-readable message. If necessary for debugging, the
ApiException's responseObject is set to the `curl_getinfo($curl)`.
2016-07-06 12:09:41 -07:00
Arne Jørgensen
7d6ac31619 [PHP] Add path without expanded path parameters to callApi
In continuation of #3117 it could be useful to know the path of an
endpoint (without path parameters expanded) in the `callApi` method of
`ApiClient`.

This is for use cases where you would create a derived class from
`ApiClient` for manipulating responses from the server before further
processing (#3117) or add extended logging of the API calls.
2016-06-30 07:12:28 +02:00
Arne Jørgensen
d9d3a41deb [PHP] add apache v2 license to PHP client
See #2963.
2016-05-25 22:53:01 +02:00
Mikolaj Przybysz
041c5d1d34 Replaced \n with PHP_EOL 2016-05-24 14:25:16 +02:00
Arne Jørgensen
cc395fdf63 [PHP] Improve generated codestyle 2016-05-14 13:45:41 +02:00
Kim Sondrup
b2f5d8c060 [PHP] Made coding standard more consistent across template files 2016-05-13 01:47:59 +02:00
Kim Sondrup
6bb953d0aa [PHP] Remove trailing spaces from templates 2016-05-13 00:31:45 +02:00
wing328
800a858acb add enum support to php, refactor post process model enum 2016-05-03 11:14:44 +08:00
wing328
02ac7d93c5 minor php code improvement 2016-04-09 17:59:28 +08:00
Elijah Miller
74536af3b9 Map binary to string in PHP since ByteArray is no longer in use. 2016-03-03 11:01:13 -05:00
wing328
9fd4f39c8c update tostring to use sanitizeforserialization 2016-01-18 21:27:29 +08:00
wing328
f54185c66d add binary support for php response 2016-01-15 11:43:02 +08:00
Ron
3a2ad9e2e4 Happy new year! 2016-01-06 16:04:16 -08:00
wing328
340e60002e more style change for php client 2015-12-07 00:52:30 +08:00
wing328
b282d4fbea add http_parse_headers, update test case 2015-12-06 23:58:25 +08:00
wing328
bb341832a5 add http info to php api methods 2015-12-06 19:00:52 +08:00
Thorsten Rinne
f23370774b Added missing visibility for constructor 2015-10-30 11:10:38 +01:00
akkie
9b8a633435 ApiException doesn't use deserialized data
This is a fix for #1394. I had not merged the data correctly after the rebase
2015-10-21 12:56:15 +02:00
akkie
b054cd3cc6 Deserialize the response body in case of an ApiException
Currently it's not possible to use custom models in the ApiException because the body gets not deserialized to Json and therefore the object deserializer cannot deserialize it to a custom model. This pull request uses the same mechanism as used to deserialize the response body in case of a 2xx status code.
2015-10-19 15:17:29 +02:00
akkie
97a5a8922f Allow to disable SSL verification
This pull request adds the possibility to disable SSL verification for hosts using a self-signed SSL certificate
2015-10-15 16:07:35 +02:00
Arne Jørgensen
3c3762fd92 Add HEAD and OPTIONS support in PHP client.
The generated PHP client didn't support the HEAD and OPTIONS methods.

Followup on #1156 and #1201.
2015-09-10 14:55:49 +02:00
wing328
f154e407d2 update coding style based on CodeSniffer 2015-07-13 15:26:12 +08:00
wing328
259b31ccd4 temporary folder setting 2015-07-13 15:21:38 +08:00
wing328
7f31da734d add file response for php, update test case 2015-07-13 15:09:09 +08:00
wing328
fcd0b31d7d add file response for php 2015-07-13 15:09:09 +08:00
Tony Tam
07d5365c5c merged from #902, rebuilt client 2015-06-25 10:17:28 -07:00
Branden Cash
8ed690cad0 Better namespace support, so that your not limited to only having a single vendor space, you can have \Vendor\Package\Model as a namespace. Also updates with proper phpdoc comments so that IDE code hinting can function properly. 2015-06-18 11:41:14 -07:00
wing328
839f0971f0 rename php ApiClient 2015-06-15 15:50:40 +08:00