Package Data | |
---|---|
Maintainer Username: | HexPang |
Maintainer Contact: | hexpang@jabstruse.com (HexPang) |
Package Create Date: | 2016-08-24 |
Package Last Update: | 2018-03-09 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-11 15:01:17 |
Package Statistics | |
---|---|
Total Downloads: | 7,130 |
Monthly Downloads: | 3 |
Daily Downloads: | 1 |
Total Stars: | 0 |
Total Watchers: | 1 |
Total Forks: | 1 |
Total Open Issues: | 0 |
SSH Client for laravel.
| Build Status | | ---- | | []|
v0.4 changed namespace and file directory
If got error about class not found,try
composer dump-autoload
composer require hexpang/laravel-ssh
Open config/app.php add for aliases
'SSH' => hexpang\Client\SSH\SSHClient::class,
use SSH;
$ssh = new SSH($host,$port,$username,$password);
| 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) |