Object Oriented SSH for PHP

Maintainers

👁 riad

Package info

github.com/youknowriad/OOSSH

Homepage

pkg:composer/youknowriad/oossh

Statistics

Installs: 6 354

Dependents: 2

Suggesters: 0

Stars: 2

dev-master 2012-10-16 08:12 UTC

Requires

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 0ea51faae212679db1e642748ec157a777dc7fbd

ssh

This package is not auto-updated.

Last update: 2026-06-21 02:41:10 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 ;)