~/talk

Building Websites with Zend Expressive 2

Talkat PHP UK Conference 2018 · 2018-02-14..02-16· [php, web-platform]
slides:none on file

Shows how to build a real Expressive app that scales by demonstrating a working Bitcoin demo, wiring dependencies with factories and a config provider, and validating user input with Zend input-filter. Explains routing with FastRoute default, middleware implemented to the PSR-15 middleware spec, and installation via composer create-project. Covers DI container choices, template or API-only responses, the exact request/response handlers used, and that the demo actually runs and returns JSON or HTML as configured.

AI-written summary · about

  1. 0:00Intro
  2. 2:07Framework core
  3. 2:49Ecosystem
  4. 3:37Agnostic Router
  5. 5:38Middleware pipeline
  6. 8:19PSR-15 Middlewarelnterface
  7. 9:43Structure of middleware
  8. 13:54src/App directory - Each module lives in its own namespace
  9. 14:30src/App directory structure
  10. 14:57A handler (AKA: an action)
  11. 16:15Bitcoin conversion
  12. 16:39Create a route
  13. 16:55Routes have a method
  14. 17:12HTTP Method
  15. 17:36Routes have a pattern
  16. 17:48FastRoute URI pattern
  17. 19:09Routes have a name
  18. 19:44Url helper
  19. 20:06Routes have a handler
  20. 20:22Handlers
  21. 21:25Bitcoin handler
  22. 22:43Injecting dependencies
  23. 23:25Expressive configuration
  24. 24:35Config Provider
  25. 25:02Dependency configuration
  26. 25:59Handler factory Return an instance of the handler with its injected dependencies
  27. 27:22Templating - Render method to convert page
  28. 28:11Twig templates
  29. 28:40Action template
  30. 29:11Control statements
  31. 30:03Base skeleton
  32. 31:54Add a form: HTML
  33. 33:18Integration via ConfigProvider
  34. 34:11Create an input filter
  35. 35:40Validating request data
  36. 40:12Resources
~/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.