friendsofhyperf/pretty-console

The pretty console component for Hyperf.

Maintainers

Package info

github.com/friendsofhyperf/pretty-console

Issues

Documentation

pkg:composer/friendsofhyperf/pretty-console

Fund package maintenance!

huangdijia

hdj.me/sponsors

Statistics

Installs: 30 135

Dependents: 3

Suggesters: 2

Stars: 2


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