youknowriad / oossh
Object Oriented SSH for PHP
dev-master
2012-10-16 08:12 UTC
Requires
- symfony/finder: >=2.1.0,<3.0
This package is not auto-updated.
Last update: 2024-11-09 18:16:48 UTC
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 ;)