yohang / oossh
Object Oriented SSH for PHP
Installs: 3 780
Dependents: 0
Suggesters: 0
Security: 0
Stars: 36
Watchers: 2
Forks: 6
Open Issues: 0
Requires
- ext-ssh2: *
- symfony/finder: >=2.1.0,<3.0
This package is auto-updated.
Last update: 2024-11-21 19:57:25 UTC
README
OOSSH is an easy-to-use object encapsulation of the php SSH2 library.
Basic Usage
$oossh = OOSSH\OOSSH::createAndLoad( array( 'foo' => array( 'host' => 'foo.bar.baz', 'username' => 'foo', 'password' => 'baz', ) ) ); $oossh->get('foo')->exec('uname -a', function($stdio, $stderr) { echo $stdio; if ($stderr) { throw new RuntimeException($stderr); } });
TODO
- File handling (SCP)
Contribute
Send me an email yohan@giarelli.org ;)