PSR7
PSR-7 is a PHP Standards Recommendation that defines a set of interfaces for representing HTTP messages, most notably requests and responses, along with supporting interfaces for URIs, streams, and uploaded files. It provides a standard contract to promote interoperability between PHP HTTP components and frameworks.
The design emphasizes immutability; instances of the interfaces are intended to be immutable, with operations that
PSR-7 does not prescribe concrete implementations. Instead, it offers the contract that libraries and frameworks can
The standard is typically used in combination with other PSRs. PSR-17 provides factories for creating PSR-7
Versioning and status: PSR-7 has achieved broad adoption and is recognized as a foundational interface in PHP