Use this template project to get started in <60 seconds with Whisp, the pure PHP SSH server for PHP based TUIs.
This template sets you up with the Whisp server, example TUI apps, and Laravel Prompts.
whisp-server.php- Runs the SSH server on port 2020,./whisp-server.phpapps/- Holds our appsdefault.php- Called when no app is specifically requestedhowdy-[name].php- Basic script to show how simple things can be, supports paramsprompts.php- More complex Laravel Prompts setup to show what's supportedconfetti.php- Draws confetti without Laravel Promptsclipboard.php- Laravel Prompts app demoing copying to the user's clipboard
Composer install, run the server, then SSH to each app:
Run the server
php whisp-server.phpRun the howdy app
ssh howdy-dood@localhost -p2020Run the prompts app We don't need to pass the app or script name here as it's the default
ssh localhost -p2020Run the confetti app
We can also call apps using -t appName
ssh localhost -p2020 -t confettiRead the full docs or use the files in the systemd dir to run your server 24x7.
This was developed by Ashley Hindle. If you like it, please star it, share it, and let me know!
- Bluesky
- Website https://ashleyhindle.com