PHPackages                             youknowriad/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. [HTTP &amp; Networking](/categories/http)
4. /
5. youknowriad/oossh

ActiveLibrary[HTTP &amp; Networking](/categories/http)

youknowriad/oossh
=================

Object Oriented SSH for PHP

26.4k1[1 PRs](https://github.com/youknowriad/OOSSH/pulls)2PHP

Since Oct 16Pushed 9y ago1 watchersCompare

[ Source](https://github.com/youknowriad/OOSSH)[ Packagist](https://packagist.org/packages/youknowriad/oossh)[ RSS](/packages/youknowriad-oossh/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (2)

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

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

OOSSH is an encapsulation of the php SSH2 library.

Warning
-------

[](#warning)

OOSSH is not stable

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

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

[](#todo)

- File handling (SCP)
- Refactoring
- Tests

Contribute
----------

[](#contribute)

Send me an email  ;)

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.9% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/325259?v=4)[riad](/maintainers/riad)[@riad](https://github.com/riad)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M82](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.9M6.8k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k24.3k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87965.9k114](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M90](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69127.2k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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