PHPackages                             nekopoi/cli - 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. nekopoi/cli

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

nekopoi/cli
===========

控制台输出带颜色字符串

06PHP

Since Mar 8Pushed 5y ago1 watchersCompare

[ Source](https://github.com/LikeNeko/php_cli_color)[ Packagist](https://packagist.org/packages/nekopoi/cli)[ RSS](/packages/nekopoi-cli/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Use
---

[](#use)

```
 * Cli::info("this is a data");
 * Cli::fail("this is a data");
 * Cli::wins("this is a data");
 * Cli::note("this is a data");
 * Cli::warn("this is a data");

 * Log::info("this is a data");
 * Log::fail("this is a data");
 * Log::wins("this is a data");
 * Log::note("this is a data");
 * Log::warn("this is a data");

 * Log::fail(new A());
 [fail][无上级方法] ⤵️
 A::__set_state(array(
    'b' => 1,
    'c' => 2,
    'd' => 3,
 ))
 * Log::wins(['a,','b','d']);
 array (
   0 => 'a,',
   1 => 'b',
   2 => 'd',
 )

```

```
$a = '123';
function aa($a,$n){
    \Neko\Cli\Log::info("this is a data");
}
class A{
    public $b = 1;
    protected $c = 2;
    private  $d = 3;

    /**
     * @return int
     */
    public function getB(): int
    {
        return $this->b;
    }

    /**
     * @param int $b
     */
    public function setB(int $b): void
    {
        $this->b = $b;
    }
}
\Neko\Cli\Log::fail(new A() );
\Neko\Cli\Log::wins(['a,','b','d']);
aa(1,2);

输出:
[fail][无上级方法][line:28] ⤵️
A::__set_state(array(
   'b' => 1,
   'c' => 2,
   'd' => 3,
))
[wins][无上级方法][line:29] ⤵️
array (
  0 => 'a,',
  1 => 'b',
  2 => 'd',
)
[info][func:aa(1,2)][line:5] this is a data

```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity30

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.

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/nekopoi-cli/health.svg)

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

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

5.1k17.2M320](/packages/wp-cli-wp-cli)[consolidation/annotated-command

Initialize Symfony Console commands from annotated command class methods.

22569.8M19](/packages/consolidation-annotated-command)[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24725.8M17](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[php-tui/php-tui

Comprehensive TUI library heavily influenced by Ratatui

589747.0k6](/packages/php-tui-php-tui)[codedungeon/php-cli-colors

Liven up you PHP Console Apps with standard colors

10210.1M26](/packages/codedungeon-php-cli-colors)

PHPackages © 2026

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