TipTuti

Build SSH Apps with PHP and Laravel Prompts

The ssh-php project by Sam Carré is a ridiculously simple starting point for building Text-based User Interfaces (TUIs) in PHP over SSH:

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-dev
ssh 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!

Comments

Back