Building awesome CLI apps with PHP
summary
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
chapters (13)
- 0:00CLI apps with PHP
- 1:57PHP for CLI apps
- 3:00PHP CLI tools examples
- 4:25Laravel Zero setup
- 6:12Basic to-do commands
- 8:21Tasks with Termwind tables
- 11:22Interactive task list
- 15:44Add tasks interactively
- 19:17Delete tasks with shortcuts
- 21:04Package CLI app
- 22:33Standalone PHP binaries
- 24:43Final thoughts
- 25:24Q&A
related talks
30mNative PHP
39mBuilding desktop apps...with PHP?
41mServer Automation with Laravel Zero
32mBuilding UIs in Terminal with Laravel Prompts
48mBuilding desktop apps with PHP
26mBuild Beautiful CLI Apps Using Termwind
02h 28mBuilding human-first and machine-friendly CLI applications
40mBuilding a personal CLI
