spatie/ssh
Execute commands over SSH with a simple PHP API. Create a connection with user/host (and optional port), run single or multiple commands synchronously or async, and get a Symfony Process back to inspect success and capture output.
Adopt this package when your project is PHP-based and requires lightweight, secure SSH command execution or file transfers (SCP) with minimal configuration. It excels for straightforward server interactions where Symfony Process compatibility is valuable, and when you need features like jump hosts, password auth (with sshpass), or multiplexing for connection reuse. Avoid it if you need advanced SSH features beyond command execution (e.g., interactive terminal sessions,
How can I help you explore Laravel packages today?