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 3w 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

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

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

[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)
