behnampro/yii2-ssh2 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

behnampro/yii2-ssh2

最新稳定版本:v0.1.2

Composer 安装命令:

composer require behnampro/yii2-ssh2

包简介

SSH2 library for yii2

README 文档

README

Latest Stable Version Total Downloads Latest Unstable Version License

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

modified for integrity and fix confilict with Yii2

by : Behnam mirzaee

Installation

The preferred way to install this extension is through composer.

Either run

composer require behnampro/yii2-ssh2 "*"

or add

"behnampro/yii2-ssh2": "*"

to the require section of your composer.json file.

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.6k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-01-30