PHPackages                             yohang/oossh - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. yohang/oossh

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

yohang/oossh
============

Object Oriented SSH for PHP

0.1.2(12y ago)363.8k6MITPHP

Since Feb 22Pushed 12y ago1 watchersCompare

[ Source](https://github.com/frequence-web/OOSSH)[ Packagist](https://packagist.org/packages/yohang/oossh)[ Docs](https://github.com/frequence-web/OOSSH)[ RSS](/packages/yohang-oossh/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

OOSSH - Object Oriented SSH for PHP
===================================

[](#oossh---object-oriented-ssh-for-php)

[![Build Status](https://camo.githubusercontent.com/8f59825b202b418ace159e8a3ab0866010cba32df84c87c0c72f179979389976/68747470733a2f2f7472617669732d63692e6f72672f6672657175656e63652d7765622f4f4f5353482e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/frequence-web/OOSSH)

OOSSH is an easy-to-use object encapsulation of the php SSH2 library.

Basic Usage
-----------

[](#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
----

[](#todo)

- File handling (SCP)

Contribute
----------

[](#contribute)

Send me an email  ;)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~52 days

Total

3

Last Release

4720d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cebd97d261d234cc9e88fb337c8b54a36f0ef20862894be210ecc4ee43e917ac?d=identicon)[yohang](/maintainers/yohang)

---

Top Contributors

[![yohang](https://avatars.githubusercontent.com/u/608984?v=4)](https://github.com/yohang "yohang (48 commits)")[![benja-M-1](https://avatars.githubusercontent.com/u/212269?v=4)](https://github.com/benja-M-1 "benja-M-1 (1 commits)")[![Seldaek](https://avatars.githubusercontent.com/u/183678?v=4)](https://github.com/Seldaek "Seldaek (1 commits)")

---

Tags

ssh

### Embed Badge

![Health badge](/badges/yohang-oossh/health.svg)

```
[![Health](https://phpackages.com/badges/yohang-oossh/health.svg)](https://phpackages.com/packages/yohang-oossh)
```

###  Alternatives

[spatie/ssh

A lightweight package to execute commands over an SSH connection

8322.8M41](/packages/spatie-ssh)[herzult/php-ssh

Provides an object-oriented wrapper for the php ssh2 extension.

3651.1M12](/packages/herzult-php-ssh)[codeaken/sshkey

Library for working with and generating SSH keys

1260.0k1](/packages/codeaken-sshkey)[pagemachine/authorized-keys

Read, edit and write the SSH authorized\_keys file

1163.1k](/packages/pagemachine-authorized-keys)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
