~/talk

Building RESTful APIs with Laravel 5's Doc Block-based Controller Annotations

Talkat PHP UK Conference 2015 · 2015-02-18..02-20· [php, web-platform]
slides:none on file

Shows a working workflow that uses Laravel 5 doc block controller annotations compiled into runtime routes and event maps rather than hand-editing routes.php. Uses php artisan route scan to generate routes.scan.php and events.scan.php, demonstrates a hotels controller with a search GET, a reservations POST that dispatches a command on the command bus and fires a room was reserved event handled by an email listener. Notes interaction with Laravel route caching and that the annotations package lives with the laravel collective.

AI-written summary · about

  1. 0:00Intro
  2. 4:02History of Laravel
  3. 5:56Laravel 5 Changes
  4. 8:28History of Annotations
  5. 16:03Comparing to Symphony
  6. 18:40Reservation Controller
  7. 20:22Make Command
  8. 22:45Handle Event
  9. 25:28Recap
  10. 27:12Cached Routes
  11. 28:17Options
  12. 29:06Advantages
  13. 30:59Documentation
  14. 31:32Disadvantages
  15. 32:20Tightly linking controller to route
  16. 32:52Single developer deployment
  17. 33:36The future of annotations
  18. 34:50How can we handle annotations
  19. 35:48Grouping controllers together
  20. 37:50Not with annotations and comments
  21. 38:25Github repository
  22. 39:11Laravel 5 update
  23. 39:26Where did the event come from
  24. 39:47ReserveRoom
  25. 40:21ReservedEvent
  26. 41:04Shortcut
  27. 42:11Alias
  28. 43:18Framework
  29. 43:42Overhead
  30. 45:39Cache
  31. 46:21Performance
  32. 46:51Read into memory
  33. 47:24Read time
  34. 47:52Laravel 5 Beta
~/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.