youknowriad/oossh
Composer 安装命令:
composer require youknowriad/oossh
包简介
Object Oriented SSH for PHP
关键字:
README 文档
README
OOSSH is an encapsulation of the php SSH2 library.
Warning
OOSSH is not stable
Basic Usage
$con = new OOSSH\SSH2\Connection('host', 22);
$con->connect()
->authenticate(new PasswordAuthentication('foo', 'bar'))
->exec('cd /home/foo')
->exec('ls -al', function($stdio, $stderr) { echo $stdio; })
->begin()
->exec('cd /var/www')
->exec('mv foo bar')
->exec('rm -rf cache/*')
->exec('exit')
->end();
TODO
- File handling (SCP)
- Refactoring
- Tests
Contribute
Send me an email yohan@giarelli.org ;)
统计信息
- 总下载量: 6.35k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2012-10-16