PHPackages                             pear/console\_commandline - 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. pear/console\_commandline

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

pear/console\_commandline
=========================

A full featured command line options and arguments parser.

v1.2.6(3y ago)255.6M—9.4%1320MITPHPPHP &gt;=5.3.0

Since Dec 10Pushed 3y ago14 watchersCompare

[ Source](https://github.com/pear/Console_CommandLine)[ Packagist](https://packagist.org/packages/pear/console_commandline)[ Docs](https://github.com/pear/Console_CommandLine)[ RSS](/packages/pear-console-commandline/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (7)Used By (20)

Console\_CommandLine
====================

[](#console_commandline)

A full featured command line options and arguments parser.

`Console_CommandLine` is a full featured package for managing command-line options and arguments highly inspired from python `optparse` module, it allows the developer to easily build complex command line interfaces.

Main features
-------------

[](#main-features)

- handles sub commands (ie. `$ myscript.php -q subcommand -f file`),
- can be completely built from an XML definition file,
- generate `--help` and `--version` options automatically,
- can be completely customized,
- builtin support for i18n,
- and much more...

Installation
------------

[](#installation)

### PEAR

[](#pear)

```
$ pear install Console_CommandLine
```

### Composer

[](#composer)

```
$ composer require pear/console_commandline
```

Links
-----

[](#links)

Homepage[http://pear.php.net/package/Console\_CommandLine](http://pear.php.net/package/Console_CommandLine)Bug tracker[http://pear.php.net/bugs/search.php?cmd=display&amp;package\_name\[\]=Console\_CommandLine](http://pear.php.net/bugs/search.php?cmd=display&package_name[]=Console_CommandLine)DocumentationUnit test status[https://travis-ci.org/pear/Console\_CommandLine](https://travis-ci.org/pear/Console_CommandLine)

[![https://travis-ci.org/pear/Console_CommandLine.svg?branch=stable](https://camo.githubusercontent.com/5149ed6ac84475e827f6dfe089119f9d40c29ba38c5bf92791007e6285f8bd18/68747470733a2f2f7472617669732d63692e6f72672f706561722f436f6e736f6c655f436f6d6d616e644c696e652e7376673f6272616e63683d737461626c65)](https://travis-ci.org/pear/Console_CommandLine)Packagist[https://packagist.org/packages/pear/console\_commandline](https://packagist.org/packages/pear/console_commandline)

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity55

Moderate usage in the ecosystem

Community36

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 76.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~534 days

Recently: every ~613 days

Total

6

Last Release

1142d ago

PHP version history (2 changes)v1.2.1PHP &gt;=5.1.0

v1.2.2PHP &gt;=5.3.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/1323714f58f9144af310e5e4217e61b96ad7c42bc5c93a1f2d97deca95f6f4f8?d=identicon)[ashnazg](/maintainers/ashnazg)

![](https://www.gravatar.com/avatar/a1a2e6fe03f91204de2117430a748a12db2957eb113d4a50fc86d68d3c851e11?d=identicon)[cweiske](/maintainers/cweiske)

---

Top Contributors

[![izimobil](https://avatars.githubusercontent.com/u/40856?v=4)](https://github.com/izimobil "izimobil (113 commits)")[![cweiske](https://avatars.githubusercontent.com/u/59036?v=4)](https://github.com/cweiske "cweiske (13 commits)")[![CloCkWeRX](https://avatars.githubusercontent.com/u/365751?v=4)](https://github.com/CloCkWeRX "CloCkWeRX (6 commits)")[![Pawka](https://avatars.githubusercontent.com/u/2011?v=4)](https://github.com/Pawka "Pawka (3 commits)")[![till](https://avatars.githubusercontent.com/u/27003?v=4)](https://github.com/till "till (3 commits)")[![remicollet](https://avatars.githubusercontent.com/u/270445?v=4)](https://github.com/remicollet "remicollet (2 commits)")[![W0rma](https://avatars.githubusercontent.com/u/20659830?v=4)](https://github.com/W0rma "W0rma (2 commits)")[![kenguest](https://avatars.githubusercontent.com/u/234118?v=4)](https://github.com/kenguest "kenguest (1 commits)")[![GregOriol](https://avatars.githubusercontent.com/u/3975044?v=4)](https://github.com/GregOriol "GregOriol (1 commits)")[![janpolsen](https://avatars.githubusercontent.com/u/192168?v=4)](https://github.com/janpolsen "janpolsen (1 commits)")[![alecpl](https://avatars.githubusercontent.com/u/546788?v=4)](https://github.com/alecpl "alecpl (1 commits)")[![kornrunner](https://avatars.githubusercontent.com/u/725986?v=4)](https://github.com/kornrunner "kornrunner (1 commits)")[![llaville](https://avatars.githubusercontent.com/u/364342?v=4)](https://github.com/llaville "llaville (1 commits)")

---

Tags

argument-parsercommand-linelibraryoption-parserphpconsole

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pear-console-commandline/health.svg)

```
[![Health](https://phpackages.com/badges/pear-console-commandline/health.svg)](https://phpackages.com/packages/pear-console-commandline)
```

###  Alternatives

[symfony/console

Eases the creation of beautiful and testable command line interfaces

9.8k1.1B11.3k](/packages/symfony-console)[psy/psysh

An interactive shell for modern PHP.

9.8k545.6M719](/packages/psy-psysh)[nunomaduro/collision

Cli error handling for console/command-line PHP applications.

4.6k331.8M8.5k](/packages/nunomaduro-collision)[nunomaduro/termwind

It's like Tailwind CSS, but for the console.

2.5k239.8M286](/packages/nunomaduro-termwind)[wp-cli/php-cli-tools

Console utilities for PHP

68325.0M367](/packages/wp-cli-php-cli-tools)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
