PHPackages                             meklis/console-client - 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. meklis/console-client

ActiveLibrary

meklis/console-client
=====================

SSH/Telnet client

0.0.3(3y ago)72.4k4MITPHPPHP &gt;=7.2.0

Since May 25Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/meklis/console-client)[ Packagist](https://packagist.org/packages/meklis/console-client)[ RSS](/packages/meklis-console-client/feed)WikiDiscussions master Synced today

READMEChangelog (3)DependenciesVersions (4)Used By (0)

Console-Client
==============

[](#console-client)

PHP library for login/password connections to devices over Telnet and SSH.

Install
-------

[](#install)

```
composer require meklis/console-client
```

Example
-------

[](#example)

**SSH connection to ZTE devices**

```
require __DIR__ . '/vendor/autoload.php';

$ssh = new \Meklis\Network\Console\SSH();
$ssh->setDeviceHelper(new \Meklis\Network\Console\Helpers\ZTE());
$ssh->connect("10.0.0.2", 2222); //Ip and custom port
$ssh->login("login", "password");
echo $ssh->exec("show card");
```

**Telnet connection to Dlink device**

```
require __DIR__ . '/vendor/autoload.php';

$ssh = new \Meklis\Network\Console\Telnet();
$ssh->setDeviceHelper(new \Meklis\Network\Console\Helpers\Dlink());
$ssh->connect("10.0.0.1");
$ssh->login("login", "password");
echo $ssh->exec("show switch");
```

Supported vendors
-----------------

[](#supported-vendors)

- Alcatel
- Alaxala
- Bdcom
- Cdata
- Dlink
- Dell
- Edgecore
- Foxgate
- Gcom
- Huawei
- Tp-link
- Ios
- ZTE
- Junos
- Linux
- Vsolution
- Xos

For adding own vendors you can create Helper extended from DefaultHelper and implement HelperInterface.

### Example of helper

[](#example-of-helper)

```
namespace Meklis\Network\Console\Helpers;

class Cdata extends DefaultHelper
{
    protected $prompt = 'OLT(.*?)[>#]';
    protected $userPrompt = 'ame:';
    protected $passwordPrompt = 'ord:';
    protected $afterLoginCommands = [];
    protected $beforeLogoutCommands = [];
    protected $windowSize = null;

    public function isDoubleLoginPrompt(): bool
    {
        if ($this->connectionType === 'ssh') {
            return true;
        }
        return $this->doubleLoginPrompt;
    }
}
```

###  Health Score

35

—

LowBetter than 81% of packages

Maintenance59

Moderate activity, may be stable

Popularity27

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 84.2% 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 ~1 days

Total

3

Last Release

1395d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/96e33529c633d65792035730b2f17d7c59e58672a97077ec684fd019d22a39d2?d=identicon)[meklis](/maintainers/meklis)

---

Top Contributors

[![meklis](https://avatars.githubusercontent.com/u/16430599?v=4)](https://github.com/meklis "meklis (101 commits)")[![toxj](https://avatars.githubusercontent.com/u/77342827?v=4)](https://github.com/toxj "toxj (13 commits)")[![dmrulg](https://avatars.githubusercontent.com/u/29884923?v=4)](https://github.com/dmrulg "dmrulg (3 commits)")[![gviabcua](https://avatars.githubusercontent.com/u/24480638?v=4)](https://github.com/gviabcua "gviabcua (3 commits)")

---

Tags

clientdevicessshtelnet

### Embed Badge

![Health badge](/badges/meklis-console-client/health.svg)

```
[![Health](https://phpackages.com/badges/meklis-console-client/health.svg)](https://phpackages.com/packages/meklis-console-client)
```

PHPackages © 2026

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