Object Oriented SSH
PHP Perl
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/OOSSH
tests
.gitignore
.noninteractive
.travis.yml
LICENSE
README.md
composer.json
composer.lock
phpunit.xml.dist

README.md

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