yohang/oossh

Object Oriented SSH for PHP

Installs: 1 301

Dependents: 0

Stars: 32

Watchers: 1

Forks: 4

Language: PHP

0.1.2 2013-06-06 21:49 UTC

README

Build Status

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 ;)