PHPackages                             azurre/php-cli-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. azurre/php-cli-builder

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

azurre/php-cli-builder
======================

Build a CLI commands

0.2(4y ago)034MITPHPPHP &gt;=7.0

Since Jun 20Pushed 4y ago1 watchersCompare

[ Source](https://github.com/azurre/php-cli-builder)[ Packagist](https://packagist.org/packages/azurre/php-cli-builder)[ Docs](https://github.com/azurre/php-cli-builder)[ RSS](/packages/azurre-php-cli-builder/feed)WikiDiscussions master Synced 1w ago

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

Simple CLI commands builder
===========================

[](#simple-cli-commands-builder)

Installation
------------

[](#installation)

```
composer require azurre/php-cli-builder
```

Usage
-----

[](#usage)

```
require __DIR__ . '/vendor/autoload.php';
use \Azurre\Component\Cli\Cmd;
$cmd = new Cmd('/usr/bin/rsync');
$cmd
    ->addOption('avz')
    ->addLongParameter('password-file', '/path/to/password file')
    ->addArgument('/path/to/source')
    ->addArgument('rsync://user@host:/destination/path');

echo (string)$cmd;
```

Output:

```
/usr/bin/rsync -avz --password-file='/path/to/password file' /path/to/source rsync://user@host:/destination/path

```

```
use \Azurre\Component\Cli\Cmd;
$cmd = Cmd::create('/usr/bin/tar')
    ->addLongOption('create')
    ->addLongOption('dereference')
    ->addLongOption('absolute-names')
    ->addLongParameter('files-from', '/path/to/list')
    ->stdErrTo('/path/to/std-errors');
echo (string)$cmd;
```

Output:

```
/usr/bin/tar --create --dereference --absolute-names --files-from=/path/to/list 2>/path/to/std-errors

```

```
use \Azurre\Component\Cli\Cmd;
$cmd = Cmd::create('/usr/bin/7za')
    ->setParameterSeparator('')
    ->addOption('bd')
    ->addOption('mx7')
    ->addParameter('si', 'test.tar')
    ->addArgument('a')
    ->addArgument('/path/to/test.tar.7z')
    ->stdErrTo(Cmd::TO_STDOUT)
    ->stdOutTo(Cmd::TO_NULL);
echo (string)$cmd;
```

Output:

```
/usr/bin/7za -bd -mx7 -sitest.tar a /path/to/test.tar.7z 1>/dev/null 2>&1

```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

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

Total

2

Last Release

1791d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f5bbeafb1d06ec9c1ba940980a19a3fd3902cef3499a446726677986be73b0ec?d=identicon)[a.milenin](/maintainers/a.milenin)

---

Top Contributors

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

---

Tags

clibuildercmd

### Embed Badge

![Health badge](/badges/azurre-php-cli-builder/health.svg)

```
[![Health](https://phpackages.com/badges/azurre-php-cli-builder/health.svg)](https://phpackages.com/packages/azurre-php-cli-builder)
```

###  Alternatives

[symfony/console

Eases the creation of beautiful and testable command line interfaces

9.8k1.1B11.3k](/packages/symfony-console)[nunomaduro/collision

Cli error handling for console/command-line PHP applications.

4.6k331.8M8.5k](/packages/nunomaduro-collision)[nunomaduro/termwind

It's like Tailwind CSS, but for the console.

2.5k239.8M286](/packages/nunomaduro-termwind)[wp-cli/wp-cli

WP-CLI framework

5.1k17.2M320](/packages/wp-cli-wp-cli)[wp-cli/php-cli-tools

Console utilities for PHP

68325.0M367](/packages/wp-cli-php-cli-tools)[socialengine/sniffer-rules

A Lumen 5 and Laravel 5 SquizLabs Code Sniffer 2.0 artisan command. Detect violations of a defined coding standard. It helps your code remains clean and consistent.

1248.2k1](/packages/socialengine-sniffer-rules)

PHPackages © 2026

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