2017 © Pedro Peláez
 

library oossh

Object Oriented SSH for PHP

image

youknowriad/oossh

Object Oriented SSH for PHP

  • Tuesday, October 16, 2012
  • by riad
  • Repository
  • 1 Watchers
  • 2 Stars
  • 6,267 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 6 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

OOSSH - Object Oriented SSH for PHP

OOSSH is an encapsulation of the php SSH2 library., (*1)

Warning

OOSSH is not stable, (*2)

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 ;), (*3)

The Versions

16/10 2012

dev-master

9999999-dev https://github.com/frequence-web/OOSSH

Object Oriented SSH for PHP

  Sources   Download

MIT

The Requires

 

ssh