Skip to content

Latest commit

 

History

History
executable file
·
40 lines (29 loc) · 818 Bytes

README.md

File metadata and controls

executable file
·
40 lines (29 loc) · 818 Bytes

OOSSH - Object Oriented SSH for PHP

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