Registry / networking / spatie-ssh

spatie-ssh

JSON →
library1.13.1phppackagistunverified

A lightweight package to execute commands over an SSH connection

composer require spatie/ssh
INSTALL
IMPORT
SIG · SPATIE-SSH
S
spatie-ssh
networkingphpv1.13.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Ssh
use Spatie\Ssh\Ssh;

Execute a command on a remote server via SSH.

use Spatie\Ssh\Ssh; $ssh = Ssh::create('user', 'example.com', 22); $result = $ssh->execute(['ls -la']); echo $result->getOutput();
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.13.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
18
OpenAI (training)
1
Resources
spatie-ssh — pip install spatie-ssh · libregistry