phpgames/hal-helper

HAL 9000 Symfony Console Helper

v1.0.1 2014-12-08 15:10 UTC

This package is auto-updated.

Last update: 2024-04-20 16:27:04 UTC


README

Build Status Latest Stable Version SensioLabsInsight

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 center

Logo and text align left

$hal = new HAL($output, true, false);
$hal->sayHello();

Logo and text align left

Only logo align center

$hal = new HAL($output, false);
$hal->sayHello();

Only logo align center

Only logo align left

$hal = new HAL($output, false, false);
$hal->sayHello();

Only logo align left

License

Released under the MIT License attached with this code.