limingxinleo/x-console-color

Color library for php console

1.0.2 2018-02-05 02:24 UTC

This package is auto-updated.

Last update: 2024-11-17 19:50:48 UTC


README

安装

composer require limingxinleo/x-console-color

使用

<?php

use Xin\Cli\Color;

echo Color::success("测试!!") . PHP_EOL;

echo Color::colorize('测试', Color::FG_RED) . PHP_EOL;