The ssh-php project by Sam Carré is a ridiculously simple starting point for building Text-based User Interfaces (TUIs) in PHP over SSH:
I've just released a massive improvement to `ssh-php`. Yesterday it was just a simple Dockerfile. Now it's a full starting point for building SSH PHP apps. Go try it out and share feedback if you can!! ❤️https://t.co/nrgmT7W4Sy
— Sam Carré 🤠 (@carre_sam) July 27, 2024
The ssh-php project uses Laravel Prompts, Chewie, and Docker to give you a foundation for developing and deploying TUIs over SSH using PHP. Running applications with Docker simplifies running an SSH server and includes a deployment script to run the Docker image on your server easily. During development, you can use the following commands to run and connect to the containerized app:
composer run-devssh localhost -p 2201
Connecting via SSH with the starter project, you'll see a prompt asking you to enter your name:
You can learn more about this package, get full installation instructions, and view the source code on GitHub. Also, be sure to check out the readme for links to useful resources to help you get started!