RawConsole - A Simple Console for PHP Applications
, (*1)
, (*2)
Package Features
- Define custom commands
- Easily run commands from the command line
Installation
Composer
RawConsole is available via Composer/Packagist., (*3)
Add "rawphp/raw-console": "0.*@dev"
to the require block in your composer.json and then run composer install
., (*4)
{
"require": {
"rawphp/raw-console": "0.*@dev"
}
}
You can also simply run the following from the command line:, (*5)
composer require rawphp/raw-console "0.*@dev"
Tarball
Alternatively, just copy the contents of the RawConsole folder into somewhere that's in your PHP include_path
setting. If you don't speak git or just want a tarball, click the 'zip' button at the top of the page in GitHub., (*6)
Usage
See 'tests/_support' directory for example commands., (*7)
The test bootstrap file shows an example of how to run the Console., (*8)
License
This package is licensed under the MIT. Read LICENSE for information on the software availability and distribution., (*9)
Contributing
Please submit bug reports, suggestions and pull requests to the GitHub issue tracker., (*10)
Changelog
22-09-2014
21-09-2014
- Command requires initialisation by calling
init( )
when constructing.
20-09-2014
- Replaced php array configuration with yaml
18-09-2014
- Updated to work with the latest rawphp/rawbase package.
16-09-2014
- Added new support properties to base Command class.
- Added new
init( )
method which adds the help and verbose options to the command options list.
- Added new StandardHelpWriter class for writing command help output. ( Not yet connected with the console ).
15-09-2014