Lines Matching refs:CLI
1 # PHP-CLI
3 PHP-CLI is a simple library that helps with creating nice looking command line scripts.
29 use splitbrain\phpcli\CLI;
32 class Minimal extends CLI
61 - create a class and ``extend splitbrain\phpcli\CLI``
78 By default, the CLI class registers an exception handler and will print the exception's message to the end user and
130 The CLI class is a fully PSR-3 compatible logger (printing colored log data to STDOUT and STDERR). This is useful when
131 you call backend code from your CLI that expects a Logger instance to produce any sensible status output while running.
133 If you need to pass a class implementing the `Psr\Log\LoggerInterface` you can do so by inheriting from one of the two provided classes implementing this interface instead of `splitbrain\phpcli\CLI`.
140 Note: if your backend code calls for a PSR-3 logger but does not actually type check for the interface (AKA being LoggerAware only) you can also just pass an instance of `splitbrain\phpcli\CLI`.
144 You can adjust the verbosity of your CLI tool using the `--loglevel` parameter. Supported loglevels are the PSR-3