PHPackages                             cliphp/args - 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. cliphp/args

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

cliphp/args
===========

Command line arguments

1.0.4(7y ago)143[2 issues](https://github.com/cliphp/args/issues)MITPHPPHP &gt;=7.1

Since Nov 9Pushed 7y ago1 watchersCompare

[ Source](https://github.com/cliphp/args)[ Packagist](https://packagist.org/packages/cliphp/args)[ Docs](https://github.com/cliphp/args)[ RSS](/packages/cliphp-args/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (3)Dependencies (2)Versions (5)Used By (0)

cliphp/args
===========

[](#cliphpargs)

[![Build Status](https://camo.githubusercontent.com/74206b443c30f42c73208b91cbaaa1a3a1e2378378e36367dd0287890431c1a7/68747470733a2f2f7472617669732d63692e6f72672f636c697068702f617267732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/cliphp/args)

Library for command line arguments.

```
use Cliphp;

$args = new Args;

// Check for --help flag
if ($args->has('help')) {
    // show help message
}

// Get limit value
$limit = $args->get('limit') ?? 100;
```

### Notes

[](#notes)

The global `$argv` variable returns the script name (e.g. index.php) as the first value in the array. This library will shift the script name from the arguments list.

### Available Methods

[](#available-methods)

- `get(string $arg): mixed|null` Returns value of an argument or `NULL` if it doesn't exist.
- `has(string $arg): bool` Checks for existence of an argument
- `all(): array` Get all of the arguments
- `count(): int` Get count of arguments

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~79 days

Total

4

Last Release

2870d ago

### Community

Maintainers

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

---

Top Contributors

[![cdtweb](https://avatars.githubusercontent.com/u/4228665?v=4)](https://github.com/cdtweb "cdtweb (16 commits)")

---

Tags

cliPHP7argscliphp

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/cliphp-args/health.svg)

```
[![Health](https://phpackages.com/badges/cliphp-args/health.svg)](https://phpackages.com/packages/cliphp-args)
```

###  Alternatives

[symfony/console

Eases the creation of beautiful and testable command line interfaces

9.8k1.1B11.3k](/packages/symfony-console)[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/wp-cli

WP-CLI framework

5.0k17.2M320](/packages/wp-cli-wp-cli)[wp-cli/php-cli-tools

Console utilities for PHP

68325.0M367](/packages/wp-cli-php-cli-tools)[socialengine/sniffer-rules

A Lumen 5 and Laravel 5 SquizLabs Code Sniffer 2.0 artisan command. Detect violations of a defined coding standard. It helps your code remains clean and consistent.

1248.2k1](/packages/socialengine-sniffer-rules)

PHPackages © 2026

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