PHPackages                             k92/ssh-exec - 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. k92/ssh-exec

ActiveLibrary

k92/ssh-exec
============

v2.0.2(1y ago)143PHP

Since Nov 19Pushed 1y ago1 watchersCompare

[ Source](https://github.com/kocoten1992/ssh-exec)[ Packagist](https://packagist.org/packages/k92/ssh-exec)[ RSS](/packages/k92-ssh-exec/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (18)Used By (0)

SSH EXEC
========

[](#ssh-exec)

Helper tool to generate ssh command line

Usage
-----

[](#usage)

```
use K92\SshExec\SSHEngine;

$se = (new SSHEngine)
    ->from([
        'ssh_privatekey_path' => '/root/.ssh/id_ed25519',
    ])
    ->to([
        'ssh_address' => 'localhost',
        'ssh_debug' => true,
        'ssh_port' => 22,
        'ssh_socket_path' => null, // manual disable multiplexing
        'ssh_username' => 'root',
    ])
    ->exec([
        'ls -1 /opt/',
        'touch /opt/newfile'
    ])
    ->exec('ls -1 /opt/')
    ->exec('touch /opt/newfile');
```

Installation
------------

[](#installation)

```
composer require k92/ssh-exec
```

Testing
-------

[](#testing)

```
./vendor/bin/phpunit tests
```

License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance42

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~4 days

Recently: every ~13 days

Total

17

Last Release

472d ago

Major Versions

v1.6.1 → v2.0.02024-12-17

### Community

Maintainers

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

---

Top Contributors

[![kocoten1992](https://avatars.githubusercontent.com/u/7130705?v=4)](https://github.com/kocoten1992 "kocoten1992 (17 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/k92-ssh-exec/health.svg)

```
[![Health](https://phpackages.com/badges/k92-ssh-exec/health.svg)](https://phpackages.com/packages/k92-ssh-exec)
```

PHPackages © 2026

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