~/talk

PSR-18: Abstracting HTTP clients in PHP

Talkat phpday 2022 · 2022-05-19..05-20· [php]
slides:none on file

Defines how to send PSR-7 requests without binding code to a specific client and specifies exact behavior: one method that returns a response or throws well-defined request or network exceptions, adapters exist for Guzzle and Symfony HTTP client, and a middleware/plugin ecosystem (headers, auth, cache, routing) is already built and works. Configuration lives on the client, not per-request; optional auto-discovery finds implementations; synchronous by PSR-18 but async patterns exist via promises and emerging fiber support; there is a symfony bundle and compatibility layer from HTTP Plug.

AI-written summary · about

  1. 0:00Introduction
  2. 2:04About me
  3. 4:02The root cause
  4. 4:45Davids personal situation
  5. 5:22HDD plug
  6. 5:37Adapters
  7. 6:26FrameworkInteroperability Group
  8. 8:24HTTP Requests and Responses
  9. 16:52HTTP Client Configuration
  10. 17:55Array Configuration Options
  11. 20:00Reusable Libraries
  12. 21:58AutoDiscovery
  13. 22:56HTTP plug interface
  14. 24:04Middleware
  15. 26:03Cache
  16. 26:48Constructors
  17. 27:21Authentication
  18. 28:21HTTP Client Router
  19. 29:25HTTP Batch Client
  20. 32:45Symphony Bundle
  21. 33:03Configuration
  22. 33:44Toolbar
  23. 33:56Information page
  24. 35:53asynchronous requests
  25. 36:53promises
  26. 38:02fibers
  27. 39:47promise
  28. 40:53promise loop
  29. 41:14promise string
  30. 42:41callback function
  31. 43:21result callback
  32. 43:34result array
  33. 43:55subclients
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.