PHPackages                             avin/telnet-commander - 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. avin/telnet-commander

ActiveLibrary

avin/telnet-commander
=====================

Send packets of commands to your telnet devices

0421PHP

Since Nov 20Pushed 11y ago1 watchersCompare

[ Source](https://github.com/avin/telnet-commander)[ Packagist](https://packagist.org/packages/avin/telnet-commander)[ RSS](/packages/avin-telnet-commander/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Telnet-Commander
================

[](#telnet-commander)

Library to easy send packets of commands to your telnet based devices and recieve answers for processing

- Send commands to device
- Setup needful promt regexp
- Read answers

Example
-------

[](#example)

In this example we login to DLink DES-3200, change time-zone and check results

```
$host = "192.168.1.10";
$host = 23;

$username = 'john';
$password = 'secretpass'

$commands = [
    ['command' => $username, 'promt' => '/username:$/i'],
    ['command' => $password, 'promt' => '/password:$/i'],
    ['command' => "enable admin", 'promt' => '/#$/i'],
    ['command' => "mysecretpass", 'promt' => '/PassWord:$|#$/i'],
    ['command' => "config time_zone operator + hour 3 min 0", 'promt' => '/#$/i'],
    ['command' => "show time", 'promt' => '/#$/i'],
    ['command' => "", 'promt' => '/#$/i'],
];

try {
        //Setup connection
        $commander = new TelnetCommander($host, $port);
        $commander->setHasAuth(false);
        $commander->connect();

        //Set commands
        $commander->setCommands($commands);

        //Execute commands
        $data = $commander->processCommands();

        /*
        Process $data if you need...
        */

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

###  Health Score

21

—

LowBetter than 19% 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/a01963596f2c48b840f29fdb4d822d785c2c73238deb88ff32f46e1cf2078045?d=identicon)[avin](/maintainers/avin)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/avin-telnet-commander/health.svg)

```
[![Health](https://phpackages.com/badges/avin-telnet-commander/health.svg)](https://phpackages.com/packages/avin-telnet-commander)
```

PHPackages © 2026

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