-
Notifications
You must be signed in to change notification settings - Fork 107
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
Why requiring Guzzle and not define an abstraction layer based on PSR7 #34
Comments
Hi @shulard, First, thanks for your feedback! Httplug is quite young. I think the best is to wait and check if the project will be a standard in the PHP world or just a new idea not maintain. If you have time to test Httplug, I'm open to this idea and contribute to the pull request. Best regards, |
Hi ! Thanks for your answer 😄 I viewed that 1.x is still on Guzzle 5 but is the 1.x sharing the same features as the 2.x ? Is it only a Guzzle update between the 2 versions ? I think I'll make this PR. I know Httplug very well (I've developed the react adapter on it), it'll be a nice real case test of integration. |
Yes, v2 is only an update to guzzle 6 :) We need to add it into the documentation. You are speaking about reactphp ? You are thinking that's possible to have multiple http requests in the same time with httplug? |
Yes, I'm speaking about reactphp 😄. Httplug handle synchronous and asynchronous requests natively. There is also adaptors for Guzzle5 and Guzzle6 and different clients (socket, curl) which handles the 2 requests types the same way. |
That's could be good :) |
Yep for sure... I'll try to submit the PR during this week then we can review it and take the right decision. For me, the most important here is that Ovh API will be used inside different project which, maybe, already rely on a HTTP Client. So load different client for the same need is too much code for me 😄. I'll mention this issue in the PR to maintain discussion history. Thanks |
Hello !
You are using a PSR7 compliant lib, Guzzle6.
I want to use your API wrapper in one of my project but my client require PHP5.4. With Guzzle6, you force the use of PHP5.5. I'll need to copy your
rawCall
method to use the same signature logic but in a new wrapper which match my requirements...Are you aware of active developed tools to abstract HTTP layer ? Do you know Httplug ?
I you want, I can make a PR to integrate that kind of stuff. It allow more flexibility in the HTTP client used and avoid multiple clients in the same context...
Thanks !
The text was updated successfully, but these errors were encountered: