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

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

dtr/ssh
=======

dTR-SSH is a SSHv2 library

01051PHP

Since Oct 23Pushed 12y agoCompare

[ Source](https://github.com/mikemackintosh/dTR-SSH)[ Packagist](https://packagist.org/packages/dtr/ssh)[ RSS](/packages/dtr-ssh/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (1)

dTR-SSH
=======

[](#dtr-ssh)

dTR-SSH is a wrapper class for SSH functions in PHP. It was designed to manage the blocking/non-blocking of both OpenSSH2 and net-sshd daemons to help manage responses, and allow an OOP interface for use in other projects.

---

### Example

[](#example)

```
use dTR\Networking;

$options = array(
	 'host' => $remote_host,
	 'port' => '22',
	 'auth' =>
	 array(
	 		'type' => SSH::PASS,
	 		'username' => 'admin',
	 		'password' => '',
	 )
);

try{
	$ssh = new SSH($options);
	$ssh->connect();

	if($ssh->authenticate()){
		echo $ssh->exec('ls -la');
	}

	$ssh->disconnect();

}
catch(\Exception $e){
	echo $e->getMessage();
}

```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![mikemackintosh](https://avatars.githubusercontent.com/u/236910?v=4)](https://github.com/mikemackintosh "mikemackintosh (1 commits)")

### Embed Badge

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

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

PHPackages © 2026

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