Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 780 Bytes

File metadata and controls

38 lines (27 loc) · 780 Bytes

Pretty Console

English

用于 Hyperf 的精美控制台组件。

Pretty Console

安装

composer require friendsofhyperf/pretty-console

使用

<?php
use FriendsOfHyperf\PrettyConsole\Traits\Prettyable;
use Hyperf\Command\Command as HyperfCommand;
use Hyperf\Command\Annotation\Command;

#[Command]
class FooCommand extends HyperfCommand
{
    use Prettyable;

    public function function handle()
    {
        $this->components->info('Your message here.');
    }
}

鸣谢