PSR 7 HTTP Messages In the Wild
summary
PSR-7 defines immutable HTTP message interfaces and a mutable Stream exception, and shows concrete interoperability: Guzzle v6 plus zend-diactoros and php-http adapters implement the interfaces, letting a PSR-7 request be proxied to the GitHub API; demos show async promises and middleware, four concurrent user profile requests finish in ~400 ms where sequential calls take >1 s, and a ServerRequestFactory/Emitter convert globals to PSR-7 and back for existing apps.
AI-written summary · about
chapters (6)
- 0:00Introduction to PSR-7
- 1:54Understanding HTTP messages
- 9:03Guzzle HTTP client
- 17:23Async requests and middlewares
- 28:51PSR-7 in existing applications
- 42:21Q&A session
related talks
46mPSR-18: Abstracting HTTP clients in PHP
52mHTTP Patterns: PSR 7 & 15 By Example
35mSpeed up web APIs with Expressive and Swoole
38mPHP FIG: Helping communities work together
45mPHP Reactive Programming
44mPSR-14: A major PHP Event
45mFrom Helpers to Middleware
46mPushing the limits of PHP with React PHP
