PHPackages                             bakhari/console - 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. [CLI &amp; Console](/categories/cli)
4. /
5. bakhari/console

ActiveLibrary[CLI &amp; Console](/categories/cli)

bakhari/console
===============

Console

0.0.3(10y ago)1701MIT

Since Jun 2Compare

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

READMEChangelogDependencies (2)Versions (4)Used By (1)

Console (SSH)
=============

[](#console-ssh)

Execute command to remote host using SSH Channel.

#### Import Classes

[](#import-classes)

```
require_once __DIR__ . "/vendor/autoload.php";

use Bakhari\Console\Console;
use Bakhari\Console\Command;
use Bakhari\Console\Streams\FileOutputStream;

use PhanAn\Remote\Remote;
use Illuminate\Config\Repository as ConsoleConfig;
```

#### Set up a new Console

[](#set-up-a-new-console)

```
$console = new Console(new ConsoleConfig([
    'host'          => '127.0.0.1',
    'port'          => 22,
    'username'      => '',
    'password'      => base64_decode('PHBhc3N3b3JkPg=='),
    'auto_login'    => false,
    'prompt'        => '/[\$>]/',
    'stdout'        => false,
]));
```

Console's output is sent to stdout by default. Other streams can be added as well. Below we are using FileOutputStream to log the output to /tmp/console

```
$console->pushOutputStream(new FileOutputStream('/tmp/console'));
```

#### Login to Console

[](#login-to-console)

If auto\_login is disabled, we need to login

```
$console->login();
```

To run commands we create a Command Object, and envoke it using run method. Second optional parameter (bool)$dry can be passed for dummy test.

```
$console->run(new Command([
    'hostname',
    'cat /etc/passwd',
]));
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

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 ~1 days

Total

3

Last Release

3678d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k14.1M124](/packages/laravel-pulse)[unisharp/laravel-filemanager

A file upload/editor intended for use with Laravel 5 to 10 and CKEditor / TinyMCE

2.1k3.4M81](/packages/unisharp-laravel-filemanager)[propaganistas/laravel-disposable-email

Disposable email validator

6012.9M7](/packages/propaganistas-laravel-disposable-email)[recca0120/terminal

run laravel artisan command in web application

880417.0k2](/packages/recca0120-terminal)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9772.3M122](/packages/roots-acorn)

PHPackages © 2026

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