Name | Updated at | |
---|---|---|
.github | ||
src | ||
LICENSE | ||
README.md | ||
composer.json |
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.');
}
}