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 <script async src=”https://platform.twitter.com/widgets.js” charset=”utf-8″></script>
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!
The post Build SSH Apps with PHP and Laravel Prompts appeared first on Laravel News.
Join the Laravel Newsletter to get all the latest Laravel articles like this directly in your inbox.
Source: Read MoreÂ