Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Object Oriented SSH
branch: master

This branch is 38 commits behind frequence-web:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src/OOSSH
tests
.gitignore
LICENSE
README.md
composer.json
composer.lock
phpunit.xml.dist

README.md

OOSSH - Object Oriented SSH for PHP

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

Something went wrong with that request. Please try again.