Skip to content

Latest commit

 

History

History
59 lines (44 loc) · 1.42 KB

README.md

File metadata and controls

59 lines (44 loc) · 1.42 KB

HAL Helper

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.