~/talk

Kicking off with Zend Expressive and Doctrine ORM

Talkat PHP UK Conference 2017 · 2017-02-16..02-17· [php, frontend-architecture]
slides:none on file

Walks through bootstrapping an Expressive app from the skeleton with composer create-project skeleton, adds two concrete endpoints to check books in and out, and implements Doctrine ORM via container-interop-doctrine with an EntityManager-backed repository. Shows transactional checkout, automatic unit-of-work flush middleware, and using ORM CLI schema generation, and demonstrates session / JWT authentication integration (helios and PSR-7 session) and pitfalls of middleware ordering and response mutation.

AI-written summary · about

  1. 0:00Start
  2. 1:19Layers of an Expressive application
  3. 4:06Node http.Server using Diactoros
  4. 5:22Middleware in the middle
  5. 7:12Modifying the response
  6. 8:06Pipe all the things!
  7. 8:52LogErrors Caught Middleware
  8. 9:18SessionInitialising Middleware
  9. 9:38Authentication Middleware
  10. 10:09IndexAction Middleware
  11. 18:12Zend Form's Module.php
  12. 18:35config/autoload/zend-form.global.php ?php
  13. 20:14Expressive installer - start
  14. 20:35Expressive installer - router?
  15. 20:47Expressive installer -template?
  16. 20:58Expressive installer - whoops?
  17. 21:56Book entity
  18. 22:50FindBookByUuidinterface
  19. 23:16Check OutAction
  20. 24:58Doctrine quick overview
  21. 27:34config/autoload/doctrine-modules.global.php
  22. 29:06Installation
  23. 31:05config/cli-config.php
  24. 34:03src/App/Service/Book/DoctrineFindBook By Uuid.php
  25. 34:58src/App/Action/CheckOutAction.php
  26. 36:29Generate the schema
  27. 36:58Insert some data
  28. 38:17Flushing Middleware
  29. 41:06Create the middleware
  30. 44:34Factory the middleware
  31. 45:22Add middleware to pipe
  32. 45:54Session is stored in Request
  33. 46:17To summarise...
  34. 48:10Any questions?
~/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.