Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Version 3.0/PSR-7 integration? #13

Open
mtymek opened this issue Aug 3, 2015 · 4 comments
Open

Version 3.0/PSR-7 integration? #13

mtymek opened this issue Aug 3, 2015 · 4 comments

Comments

@mtymek
Copy link

mtymek commented Aug 3, 2015

Dear ZF Team,

Is there a roadmap or plans for version 3.0 of this component, making it PSR-7 compilant?

Thinking about it, I can see 3 major responsibilities of this repo:

  • HTTP message abstraction
  • header manipulation
  • HTTP client

With zend-diactoros covering "HTTP message", zend-http could be ultimately split into two repositories. A lot of PSR-7 applications could benefit from good header manipulation library (I didn't see anything like this centered around PSR-7 yet), that can be developed without spending time on migrating the client (well, we have Guzzle).

What do you think?

best,

@weierophinney
Copy link
Member

For migration purposes, we will be keeping the component essentially as-is. The ZF2 MVC utilizes this component heavily, and we do not want to make migration from 2 to 3 difficult for MVC applications.

Additionally, the HTTP client predates Guzzle by several years, and is in use in a large number of applications; we do not want to make migration too difficult.

We will likely steer people towards PSR-7 implementations in the future, and I expect we'll take some of the header implementations here and migrate them to another library for folks to consume; however, we'll keep them intact here for existing users.

Otherwise, this component will not have active development going forward.

@mtymek
Copy link
Author

mtymek commented Aug 4, 2015

Thanks for your explanation.

So, if I understand it correctly, ZF3 MVC will still be based on zend-http's HTTP abstractions instead of PSR-7 (perhaps with some bridge, like in Symfony)?

I was asking, because I'm actually already using part of this library in my PSR-7 project, but it just feels bad to include full zend-http and its dependencies only to parse Content-Type header. Likely some of header classes would become easier to use if they had PSR-7 specific methods (like FIG Cookies).

Is there anything that can be done to make this separate header library sooner than later? I don't think there is a PSR-7 library like this around, and likely the demand will rise soon (even for Apigility 2.0?).

@samsonasik
Copy link
Contributor

there is https://github.com/zendframework/zend-psr7bridge for it, it can be closed.

@weierophinney
Copy link
Member

This repository has been closed and moved to laminas/laminas-http; a new issue has been opened at laminas/laminas-http#26.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants