phpgames / hal-helper
HAL 9000 Symfony Console Helper
v1.0.1
2014-12-08 15:10 UTC
Requires
- symfony/console: ~2.5
Requires (Dev)
- phpunit/phpunit: ~4.0
This package is auto-updated.
Last update: 2024-10-20 17:27:55 UTC
README
Installation
Step 1: Composer
Add the following line to the composer.json
file:
{ "require": { "phpgames/hal-helper": "~1.0" } }
Usage
By default, HAL logo will be shown centered on the screen and without text. To customice the output style please change the constructor parameters:
Logo and text align center
$hal = new HAL($output); $hal->sayHello();
Logo and text align left
$hal = new HAL($output, true, false); $hal->sayHello();
Only logo align center
$hal = new HAL($output, false); $hal->sayHello();
Only logo align left
$hal = new HAL($output, false, false); $hal->sayHello();
License
Released under the MIT License attached with this code.