~/talk

Building awesome CLI apps with PHP

Talkat Laracon EU 2022 · 2022-04-26..04-27· [php, developer-experience]
slides:none on file

Builds a working CLI to-do with Laravel Zero using SQLite, shows add/list commands then an interactive menu with checkboxes, prompts and a Capital D shortcut for delete and live redraws the menu so changes appear immediately. Demonstrates formatted output via termwind, produces a distributable .far of about 9.3 MB and a standalone bundle ~13 MB that embeds a static PHP binary so it runs without PHP on Windows and Linux with some caveats about extensions.

AI-written summary · about

  1. 0:00CLI apps with PHP
  2. 1:57PHP for CLI apps
  3. 3:00PHP CLI tools examples
  4. 4:25Laravel Zero setup
  5. 6:12Basic to-do commands
  6. 8:21Tasks with Termwind tables
  7. 11:22Interactive task list
  8. 15:44Add tasks interactively
  9. 19:17Delete tasks with shortcuts
  10. 21:04Package CLI app
  11. 22:33Standalone PHP binaries
  12. 24:43Final thoughts
  13. 25:24Q&A
~/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.