2017 © Pedro Peláez
 

library yii2-ssh2

SSH2 library for yii2

image

behnampro/yii2-ssh2

SSH2 library for yii2

  • Thursday, February 1, 2018
  • by behnampro
  • Repository
  • 0 Watchers
  • 1 Stars
  • 461 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 4 Versions
  • 46 % Grown

The README.md

SSH2 library for yii2

Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

Pure PHP library widget (based on phpseclib) for Yii2., (*2)

modified for integrity and fix confilict with Yii2, (*3)

by : Behnam mirzaee, (*4)

Installation

The preferred way to install this extension is through composer., (*5)

Either run, (*6)

composer require behnampro/yii2-ssh2 "*"

or add, (*7)

"behnampro/yii2-ssh2": "*"

to the require section of your composer.json file., (*8)

Usage

Example

use behnampro\yii2ssh\Yii2ssh;

$yii_ssh = new Yii2ssh();
$host = "127.0.0.1";
$auth['username'] = 'admin';
$auth['password'] = 'password';
if($yii_ssh->connect($host, $auth))
{
    $yii_ssh->run_ssh([
        'ls -al',
    ], function($line) {
        echo $line;
    });
}

Ref

The project is modified based on thelfensdrfer/yii2sshconsole, (*9)

The Versions

01/02 2018

dev-master

9999999-dev

SSH2 library for yii2

  Sources   Download

MIT

The Requires

 

by Behnam mirzaee

31/01 2018

v0.1.2

0.1.2.0

SSH2 library for yii2

  Sources   Download

MIT

The Requires

 

by Behnam mirzaee

24/05 2016

0.1.1

0.1.1.0

SSH2 library for yii2

  Sources   Download

MIT

The Requires

 

by Avatar ourren

24/05 2016

0.1

0.1.0.0

SSH2 library for yii2

  Sources   Download

MIT

The Requires

 

by Avatar ourren