wnowicki / cli
PHP CLI
Installs: 64
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/wnowicki/cli
This package is auto-updated.
Last update: 2025-10-06 04:26:30 UTC
README
by WNowicki
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!
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:
cd demo
php snake.php