hexpang / laravel-ssh
SSH Client For Laravel.
Installs: 7 163
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/hexpang/laravel-ssh
Requires
- php: >=5.3.0
- illuminate/container: ^5.1
- illuminate/support: ^5.1
Requires (Dev)
- phpunit/phpunit: ^5.1
This package is not auto-updated.
Last update: 2025-10-23 07:45:44 UTC
README
SSH Client for laravel.
v0.5 moved to ssh-client
| Build Status |
|---|
| [ |
v0.4 changed namespace and file directory
If got error about class not found,try
composer dump-autoload
Install With Composer
composer require hexpang/laravel-ssh
Open config/app.php add for aliases
'SSH' => hexpang\Client\SSH\SSHClient::class,
Usage
use SSH;
$ssh = new SSH($host,$port,$username,$password);
Method
| Method | Description | Usage |
|---|---|---|
| Ping | Check port | $ssh->ping($host,$port,$timeOut) |
| Connect | Connect to server | $ssh->Connect() |
| Authorize | Authorize | $ssh->Authorize() |
| Disconnect | Disconnect | $ssh->Disconnect() |
| Execute | Execute command and response result for an array[ Response,Error ] | $ssh->Execute($command) |