PHPackages                             traineratwot/php-cli - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. traineratwot/php-cli

ActiveLibrary[Framework](/categories/framework)

traineratwot/php-cli
====================

php cli framework

2.0.1(3y ago)02.8k↓41.7%11MITPHPPHP ^8.1

Since Apr 24Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Traineratwot/php-cli)[ Packagist](https://packagist.org/packages/traineratwot/php-cli)[ Docs](https://github.com/traineratwot/php-cli)[ RSS](/packages/traineratwot-php-cli/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (16)Used By (1)

PHP-CLI
=======

[](#php-cli)

PHP-CLI is a simple library that helps with creating nice looking command line scripts. It takes care of

- **option parsing**
- **help page generation**
- **automatic width adjustment**
- **colored output**
- **prompt**
- **PSR-4 compatibility**
- **support php versions &gt;= 8.1**
- **support Enum**

Use composer: `php composer.phar require traineratwot/php-cli`

Usage and Examples
------------------

[](#usage-and-examples)

Minimal example:

```
