PHPackages                             phamviet/command-builder - 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. phamviet/command-builder

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

phamviet/command-builder
========================

v1.0.2(10y ago)125MITPHP

Since Sep 15Pushed 10y ago1 watchersCompare

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

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

```
** Example

$which = new Which('node');
$which->setEnvironment('PATH', '/usr/bin:/usr/local/bin');

*** SSH

$sshOptions = [
    'StrictHostKeyChecking' => 'false',
    'UserKnownHostsFile'    => '/home/user/.ssh/custom_known_hosts',
];
$ssh = new Ssh();
$ssh->setIdentity('/home/user/.ssh/custom_id_rsa');
$ssh->setOptions($sshOptions);

*** GIT

$git = new Git('clone');
$git
    ->setRepository('git@github.com:phamviet/command-builder.git')
    ->cloneTo("/home/user/public_html")
    ->setEnvironment('GIT_SSH_COMMAND', $ssh);

$git = new Git('pull');
$git->setEnvironment('GIT_SSH_COMMAND', $ssh);
$git->run('/Users/viet/www/himmag');

*** MYSQL

$mysql = new Mysql();
$mysql
    ->setUser('user')
    ->setPassword('password')
    ->setDatabase('db_name')
    ->setFromFile('/path/to/restore/db.sql');

*** RSYNC

$rsync = new Rsync();
$rsync
    ->setOption('avz')
    ->setSsh($ssh);

$rsync
    ->setSource('source')
    ->setTarget('target');

*** du

Du::getSize('/path');
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

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

Total

3

Last Release

3893d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/phamviet-command-builder/health.svg)

```
[![Health](https://phpackages.com/badges/phamviet-command-builder/health.svg)](https://phpackages.com/packages/phamviet-command-builder)
```

###  Alternatives

[humbug/box

Fast, zero config application bundler with PHARs.

1.3k801.5k69](/packages/humbug-box)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[crunzphp/crunz

Schedule your tasks right from the code.

2292.0M6](/packages/crunzphp-crunz)[crazywhalecc/static-php-cli

Build single static PHP binary, with PHP project together, with popular extensions included.

1.8k13.9k](/packages/crazywhalecc-static-php-cli)[madewithlove/license-checker

CLI tool to verify allowed licenses for composer dependencies

54449.8k21](/packages/madewithlove-license-checker)[statamic/cli

Statamic CLI Tool

7587.7k](/packages/statamic-cli)

PHPackages © 2026

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