friendsofhyperf/pretty-console

The pretty console component for Hyperf.

v3.1.41 2024-09-25 00:28 UTC

README

Latest Test Latest Stable Version Total Downloads License

The pretty console component for Hyperf.

image

Installation

composer require friendsofhyperf/pretty-console

Usage

<?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.');
    }
}

Thanks

Contact

License

MIT