friendsofhyperf / pretty-console

[READ-ONLY]The pretty console component for Hyperf.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pretty Console

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

About

[READ-ONLY]The pretty console component for Hyperf.

License:MIT License


Languages

Language:PHP 100.0%