hexpang/laravel-ssh
SSH Client For Laravel
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) |
Related Packages
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v0.4.1 | >=5.3.0 | ^5.1 | MIT | |
| v0.4.0 | >=5.3.0 | ^5.1 | MIT | |
| v0.3.3 | >=5.3.0 | ^5.1 | MIT | |
| v0.3.2 | >=5.3.0 | ^5.1 | MIT | |
| v0.3.1 | >=5.3.0 | MIT | ||
| v0.0.3 | >=5.3.0 | >=5.2.0 | MIT | |
| v0.0.2 | >=5.3.0 | >=5.2.0 | MIT |
]