Download the PHP package koshkin/yii-reach-cli without Composer
On this page you can find all versions of the php package koshkin/yii-reach-cli. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download koshkin/yii-reach-cli
More information about koshkin/yii-reach-cli
Files in koshkin/yii-reach-cli
Package yii-reach-cli
Short Description Decorators and helpers for console applications based on Yii 1.* framework
License MIT
Informations about the package yii-reach-cli
yii-reach-cli
Component for Yii 1.* framework that helps to make console application more interactive and pretty for less time.
Requirements
- Yii framework >= 1.1.9
- PHP >= 5.5
Usage
The simplest and fastest way for receive all functionality is to extend console commands in your applications
from \ReachCli\ConsoleCommand base class. This class contains everything from this package.
Most of provided functionality is divided to separate and independent traits that are located under
./src/ReachCli/ConsoleCommandTraits directory and \ReachCli\ConsoleCommandTraits namespace. You can choose and use
any of them in any combination.
If you need all traits, but you don't want to extend from \ReachCli\ConsoleCommand base class, you can find all
traits combined into one \ReachCli\ConsoleCommandTraits\AllTogether for easier include to projects.
Examples
In all examples RCli means \ReachCli\RCli class, and $this means
instance of object that extends \ReachCli\ConsoleCommand class.
Output messages
Interact with user
Help for console command that is generated using PHPDoc annotations
Use trait ReachCli\ConsoleCommandTraits\Help to use this functionality separately.
See ReachCli\Examples\HelpCommand for example.
Receive command, actions and parameters description, generated from command class structure and it's PHPDoc
Errors and warnings
Use trait ReachCli\ConsoleCommandTraits\ErrorWarning to use this functionality separately.
Count different events and prints statistic for this events
Use trait ReachCli\ConsoleCommandTraits\Statistic to use this functionality separately.
Command execution timers
Use trait ReachCli\ConsoleCommandTraits\Timer to use this functionality separately.
See ReachCli\Examples\TimerCommand for example.