m6w6 / ext-http

Extended HTTP Support
BSD 2-Clause "Simplified" License
79 stars 22 forks source link

Where to find a valid PHP stub file? #83

Closed Leeo97one closed 5 years ago

Leeo97one commented 5 years ago

I'm currently using the one provided by JetBrains but it lacks PHPDoc.

Where can I find a complete stub?

m6w6 commented 5 years ago

I'm experimenting with generating one out of https://mdref.m6w6.name/http i.e. https://github.com/mdref/mdref-http.git

Here's a first result: https://gist.github.com/m6w6/49b10cf182d563b47dc1b28c7c1a2644

Leeo97one commented 5 years ago

Thanks! I'll try it ASAP and possibly make a pull request on the JetBrains repo if it's OK.

Leeo97one commented 5 years ago

Overall it looks good but the default value of optional parameter is missing from some functions. For exemple: the $cb parameter from the Client::enqueue function or $request from Client::getResponse.

m6w6 commented 5 years ago

Thank you for the feedback, I'll look into that

m6w6 commented 5 years ago

Stub files are now available in the docs repo: https://github.com/mdref/ And can be downloaded from the docs website: http://mdref.m6w6.name/

Leeo97one commented 5 years ago

Excellent, thanks!