PHPackages                             ekowabaka/clearice - 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. [CLI &amp; Console](/categories/cli)
4. /
5. ekowabaka/clearice

ActiveLibrary[CLI &amp; Console](/categories/cli)

ekowabaka/clearice
==================

A tool to help in the building of CLI apps. Provides command line parsing and simple console I/O interfaces.

v3.2.2(8mo ago)45.3k↑45%[2 issues](https://github.com/ekowabaka/clearice/issues)6MITPHPPHP &gt;=7.1CI failing

Since Mar 29Pushed 8mo ago3 watchersCompare

[ Source](https://github.com/ekowabaka/clearice)[ Packagist](https://packagist.org/packages/ekowabaka/clearice)[ RSS](/packages/ekowabaka-clearice/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (35)Used By (6)

ClearIce PHP Command Line Argument Parser
=========================================

[](#clearice-php-command-line-argument-parser)

[![Build Status](https://camo.githubusercontent.com/420bb99d8e69aaf943065df6459d9fef60a69752a66934d3488b27aa45aeeb4a/68747470733a2f2f7472617669732d63692e6f72672f656b6f776162616b612f636c6561726963652e706e67)](https://travis-ci.org/ekowabaka/clearice)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/1f40131a2969ef10455272b80f45b168bd488e10feaea873dd0edecbce62d634/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f656b6f776162616b612f636c6561726963652f6261646765732f7175616c6974792d73636f72652e706e67)](https://scrutinizer-ci.com/g/ekowabaka/clearice/)[![Code Coverage](https://camo.githubusercontent.com/580f2b4561d7d04253c418542c3e11e014c8f9ad8f7423c8a64bbfe21ecce636/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f656b6f776162616b612f636c6561726963652f6261646765732f636f7665726167652e706e67)](https://scrutinizer-ci.com/g/ekowabaka/clearice/)[![Latest Stable Version](https://camo.githubusercontent.com/08152a85eef29d05e1dbe2b1dda0b2042b10be9fb0a0d51765e335f1f063e232/68747470733a2f2f706f7365722e707567782e6f72672f656b6f776162616b612f636c6561726963652f76657273696f6e2e737667)](https://packagist.org/packages/ekowabaka/clearice)[![Total Downloads](https://camo.githubusercontent.com/b4927855a13836e1e97d9cd4b9f7810447558bf89fad9f4fbb77fd93f3cbe0f7/68747470733a2f2f706f7365722e707567782e6f72672f656b6f776162616b612f636c6561726963652f646f776e6c6f616473)](https://packagist.org/packages/ekowabaka/clearice)

ClearIce provides tools for PHP applications to help with parsing command line arguments, and performing interactive I/O sessions. Arguments supplied at the command line or through a shell are validated and supplied to your script in a consistently organized format. And gues what, there's also the added possibility of automatically generating help messages for your applications.

Installing
----------

[](#installing)

Although you can directly include the ClearIce scripts into your application, the best way of installing it is through composer.

```
composer require ekowabaka/clearice

```

ClearIce has no dependencies other than a PHP interpreter with version 7.1 or better.

Parsing Arguments with ClearICE
-------------------------------

[](#parsing-arguments-with-clearice)

Let's get started with an example. If you ever wanted to parse command line arguments you can put ...

```
