2017 © Pedro Peláez
 

library cli

PHP CLI

image

wnowicki/cli

PHP CLI

  • Wednesday, March 4, 2015
  • by wnowicki
  • Repository
  • 1 Watchers
  • 0 Stars
  • 17 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

PHP CLI Library

by WNowicki, (*1)

Scrutinizer Code Quality Build Status, (*2)

Install

Composer Installation

To install cli library you will need to use Composer in your project. If you aren't using Composer yet, it's really simple!, (*3)

curl -sS https://getcomposer.org/installer | php

Cli Installation

php composer.phar require wnowicki/cli:~1.0

Example

$box = \WNowicki\Cli\Box::makeFromString("Lorem ipsum dolor sit amet,\nconsectetur adipiscing elit.", null, null, \WNowicki\Cli\Color::BG_RED);

$box2 = \WNowicki\Cli\Box::make(20, 7, \WNowicki\Cli\Color::COLOR_YELLOW, null, \WNowicki\Cli\Color::BG_WHITE)
    ->addBorder('*', null, \WNowicki\Cli\Color::BG_RED)
    ->addTitle('Box', \WNowicki\Cli\Color::COLOR_BLACK);

\WNowicki\Cli\Screen::make()
    ->putInCenter($box, 6)
    ->putInColumn($box2, 2, 1, 10)
    ->putInColumn($box2, 2, 2, 10)
    ->addTitle('Title', \WNowicki\Cli\Color::COLOR_GREEN, null, \WNowicki\Cli\Color::BG_BLACK)
    ->render();

Demo

Run:, (*4)

cd demo
php snake.php

The Versions

04/03 2015

dev-master

9999999-dev

PHP CLI

  Sources   Download

22/02 2015

dev-develop

dev-develop

PHP CLI

  Sources   Download

22/02 2015

1.0.0

1.0.0.0

PHP CLI

  Sources   Download

11/02 2015

0.1.0

0.1.0.0

PHP CLI

  Sources   Download