knot-demo/console-demo

A simple demo of knot-lib/console.

0.1.1 2019-12-19 12:37 UTC

This package is auto-updated.

Last update: 2023-05-19 21:36:48 UTC


README

Description

A simple demo of calgamo/console.

Demo

# php bin/console.php /hello
Hello, World!
# php bin/console.php /demo/log
[2018-09-24 16:01:42] DEBUG: Event received: eventstream.attached args: Calgamo\Framework\Adapter\Stk2kEventStreamAdapter
[2018-09-24 16:01:42] DEBUG: Event received: response.attached args: Calgamo\Console\Response\ShellResponse
[2018-09-24 16:01:42] DEBUG: Event received: pipeline.attached args: Calgamo\Middleware\Pipeline\Pipeline
[2018-09-24 16:01:42] DEBUG: Event received: logger.attached args: Calgamo\Module\Adapter\PsrLoggerAdapter
[2018-09-24 16:01:42] DEBUG: Event received: request.attached args: Calgamo\Console\Request\ShellRequest

Requirement

PHP 7.1 or later

Installing knot-demo/console-demo

The recommended way to install knot-demo/console-demo is through Composer.

composer create-project calgamo/console-demo --no-dev

License

MIT

Author

stk2k

Disclaimer

This software is no warranty.

We are not responsible for any results caused by the use of this software.

Please use the responsibility of the your self.