定制 phpgames/hal-helper 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

phpgames/hal-helper

最新稳定版本:v1.0.1

Composer 安装命令:

composer require phpgames/hal-helper

包简介

HAL 9000 Symfony Console Helper

README 文档

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.

统计信息

  • 总下载量: 92
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 5
  • Watchers: 2
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-12-08