~/talk

Writing API clients with HTTPlug

Talkat Web Summer Camp 2016 · 2016-08-31..09-03· [api-design, php]
links:none on file
slides:none on file

Shows how to build a reusable PHP API client for a small to‑do REST API using PSR-7 requests, the HTTPlug client interface and Guzzle adapters, plus a MessageFactory and plugin chain (for example the ad-host plugin). The workshop builds create/get/update operations that handle 200/204/404 codes, wraps transport exceptions into domain exceptions via a sendRequest helper, uses an HTTPlug mock client for unit tests asserting requests and error mapping, and demonstrates Symfony integration and the debug toolbar.

AI-written summary · about

  1. 0:00Start
  2. 5:38PSR-7 flow
  3. 20:41HTTPlug Asynchronous
  4. 28:15Composer in a library
  5. 31:51Composer in an application
~/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.