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

Make responses PSR-7 Compliant #291

Closed
polyfractal opened this issue Aug 28, 2015 · 3 comments
Closed

Make responses PSR-7 Compliant #291

polyfractal opened this issue Aug 28, 2015 · 3 comments

Comments

@polyfractal
Copy link
Contributor

Making the responses coming out of of Elasticsearch-PHP PSR-7 compliant shouldn't be too difficult, and I think it can be done in a way that doesn't violate the "no opinion" goal of all low-level ES clients (and without breaking bwc)

I'm unsure if the requests can easily be made compliant, but we can explore that avenue as well

@jeskew
Copy link

jeskew commented Oct 15, 2015

👍 to having requests be PSR-7 compliant (and for having a method that would create a request object and return it to you). That would make it easier to support more kinds of authentication.

@sagikazarmark
Copy link

Speaking of PSR-7: several PHP HTTP components became stable over the past few weeks:

  • HTTPlug: a PSR-7 HTTP Client abstraction layer
  • Message: several message helper components
  • Message Factory: interfaces for PSR-7 Message Factories

@ezimuel
Copy link
Contributor

ezimuel commented Jul 8, 2019

I'm working on a new elasticsearch-php client that will be released for the next major (8.0). This will support PSR-7, PSR-18.

@ezimuel ezimuel closed this as completed Jul 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants