rawphp / raw-console
RawConsole is a simple console package used by RawPHP framework and other applications.
Requires
- php: >=5.4.0
Requires (Dev)
- phpunit/phpunit: 4.2.5
- rawphp/raw-code-standards: 1.*@dev
- rawphp/raw-dispatcher: 0.*@dev
- rawphp/raw-support: 0.*@dev
- satooshi/php-coveralls: dev-master
This package is auto-updated.
Last update: 2024-11-20 08:24:51 UTC
README
Package Features
- Define custom commands
- Easily run commands from the command line
Installation
Composer
RawConsole is available via Composer/Packagist.
Add "rawphp/raw-console": "0.*@dev"
to the require block in your composer.json and then run composer install
.
{ "require": { "rawphp/raw-console": "0.*@dev" } }
You can also simply run the following from the command line:
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.
Usage
See 'tests/_support' directory for example commands.
The test bootstrap file shows an example of how to run the Console.
License
This package is licensed under the MIT. Read LICENSE for information on the software availability and distribution.
Contributing
Please submit bug reports, suggestions and pull requests to the GitHub issue tracker.
Changelog
22-09-2014
- Updated to PHP 5.3.
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
- Initial Code Commit