PHPackages                             rde/php-terminal - 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. rde/php-terminal

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

rde/php-terminal
================

處理php終端機輸出

v0.1.3(10y ago)0151MITPHPPHP &gt;=5.3

Since Jul 6Pushed 9y ago1 watchersCompare

[ Source](https://github.com/colin1124x/php-terminal)[ Packagist](https://packagist.org/packages/rde/php-terminal)[ RSS](/packages/rde-php-terminal/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (6)Used By (1)

php terminal tool
=================

[](#php-terminal-tool)

[![Build Status](https://camo.githubusercontent.com/033ff99cc071239fbaa539131f87e0f37c33b6d62e83067f956fd79e2e997c5b/68747470733a2f2f7472617669732d63692e6f72672f636f6c696e6465762f7068702d7465726d696e616c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/colindev/php-terminal)

### Flag

[](#flag)

cmd.php

```
use Rde\Flag;

$flag = new Flag;

// 取參照
$str = &$flag->string('str-name', 'default', 'describes...');

// 傳參照
$flag->intVar($int, 'int-name', 0, 'describes...');

// 解析
$args = $flag->parse($argv);

var_dump($args, $str, $int);
```

cli

```
./cmd.php --str-name abc --int-name 123 x y z
```

output

```
array(3) {
  [0] =>
  string(1) "x"
  [1] =>
  string(1) "y"
  [2] =>
  string(1) "z"
}
string(3) "abc"
int(123)
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

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

Total

5

Last Release

3897d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/22b0425a5b48108d5aa970a9f115f73358b8257a578c0974677cc2587549196b?d=identicon)[colindev](/maintainers/colindev)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rde-php-terminal/health.svg)

```
[![Health](https://phpackages.com/badges/rde-php-terminal/health.svg)](https://phpackages.com/packages/rde-php-terminal)
```

###  Alternatives

[illuminate/console

The Illuminate Console package.

13046.0M6.5k](/packages/illuminate-console)[styleci/cli

The CLI tool for StyleCI

71470.5k9](/packages/styleci-cli)[winbox/args

Windows command-line formatter

20720.9k21](/packages/winbox-args)[tomatophp/filament-artisan

Simple but yet powerful library for running some artisan commands for FilamentPHP

3275.4k1](/packages/tomatophp-filament-artisan)

PHPackages © 2026

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