OOSSH is an encapsulation of the php SSH2 library.
OOSSH is not stable
$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();
- File handling (SCP)
- Refactoring
- Tests
Send me an email yohan@giarelli.org ;)