PSR-7 and PSR-15 are PHP standards for representing HTTP messages and server request handling. PSR-7 defines interfaces for HTTP messages like requests and responses, while PSR-15 defines interfaces for request handlers and middleware. These standards provide a common way for PHP libraries to interact with HTTP messages and requests, improving interoperability. They also allow applications to be built in a way that is compatible with evolving PHP frameworks and tools. Adopting these PSRs helps create a solid foundation for building HTTP applications and middleware in PHP.
13. PSR-7 describes common interfaces for
representing HTTP messages as
described in RFC 7230 and
RFC 7231, and URIs for use with HTTP
messages as described in RFC 3986.
https://www.php-fig.org/psr/psr-7/
20. use PsrHttpMessageMessageInterface;
use PsrHttpMessageRequestInterface;
use PsrHttpMessageResponseInterface;
use PsrHttpMessageServerRequestInterface;
use PsrHttpMessageStreamInterface;
use PsrHttpMessageUploadedFileInterface;
use PsrHttpMessageUriInterface;
PSR-7 Interfaces
https://www.php-fig.org/psr/psr-7/
44. PSR-15 describes common interfaces
for HTTP server request handlers and
HTTP server middleware components
that use HTTP messages as described
by PSR-7 or subsequent replacement
PSRs.
https://www.php-fig.org/psr/psr-15/
45. Pipeline is a series of processing stages
$ ps aux | grep firefox | grep -v grep | awk '{print $2}'
61. “I would advise students to pay more
attention to the fundamental ideas rather
than the latest technology. The technology
will be out-of-date before they graduate.
Fundamental ideas never get out of date.”
–David Lorge Parnas
https://www.sigsoft.org/SEN/parnas.html