~/talk

Building UIs in Terminal with Laravel Prompts

Talkat Laracon India 2024 · 2024-03-23..03-24· [php, developer-experience]
slides:none on file

Demos how Laravel Prompts plus a tiny helper library Chewy render real text UIs by treating the UI as a string function of state, showing exact code for key listeners, word wrap, terminal width/height handling, column zipping and alternate screen rendering. Builds a speaker directory with up/down selection, pinned hotkey help, and a T to open Twitter, shows problems (auto wrap, cursor hiding) and fixes so the app works reliably in a real terminal.

AI-written summary · about

  1. 0:00Introduction and welcome
  2. 1:57What are Laravel Prompts
  3. 4:46TUI fundamentals
  4. 7:14Setting up Prompts app
  5. 10:05Building a counter app
  6. 12:13Handling user input
  7. 14:20Terminal window constraints
  8. 17:07Building speaker directory
  9. 20:17Selecting speakers
  10. 23:27Displaying speaker details
  11. 25:34Immersive full-screen app
  12. 26:39Adding hotkeys
  13. 28:22Opening Twitter profiles
  14. 29:03Advanced TUI examples
  15. 30:09Q&A and meetup discussion
~/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.