PHPackages                             ethnam/getopt - 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. ethnam/getopt

ActiveLibrary[Framework](/categories/framework)

ethnam/getopt
=============

Getopt for Ethnam

v1.0.0(11y ago)18331BSD-4-ClausePHPPHP &gt;=5.4.0

Since May 2Pushed 10y ago1 watchersCompare

[ Source](https://github.com/ethnamphp/getopt)[ Packagist](https://packagist.org/packages/ethnam/getopt)[ Docs](https://github.com/DQNEO/ethnam-getopt)[ RSS](/packages/ethnam-getopt/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (6)Used By (1)

Ethnam Getopt Component
=======================

[](#ethnam-getopt-component)

re-invention of PEAR's Console\_Getopt

INSTALL
-------

[](#install)

In you composer.json

```
{
  "require" : {
    "ethnam/getopt" : "1.*"
  }
}
```

USAGE
-----

[](#usage)

```
use Ethnam\Getopt\Getopt;
$opt = new Getopt();
$arg_list = $opt->readGlobalArgv();
array_shift($arg_list);  // remove commant itself
$opt->getopt($my_arg_list, "v", array("version"));
```

SEE ALSO
--------

[](#see-also)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 79.1% 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 ~0 days

Total

5

Last Release

4032d ago

Major Versions

v0.1.2 → v1.0.02015-05-05

### Community

Maintainers

![](https://www.gravatar.com/avatar/7f6098905fa9174647908a38741efcecf355059685cae608f6184ecdfa94d861?d=identicon)[DQNEO](/maintainers/DQNEO)

---

Top Contributors

[![DQNEO](https://avatars.githubusercontent.com/u/188741?v=4)](https://github.com/DQNEO "DQNEO (865 commits)")[![sotarok](https://avatars.githubusercontent.com/u/29064?v=4)](https://github.com/sotarok "sotarok (207 commits)")[![mumumu](https://avatars.githubusercontent.com/u/26536?v=4)](https://github.com/mumumu "mumumu (12 commits)")[![riaf](https://avatars.githubusercontent.com/u/29904?v=4)](https://github.com/riaf "riaf (3 commits)")[![fukazawa-tinami](https://avatars.githubusercontent.com/u/4167621?v=4)](https://github.com/fukazawa-tinami "fukazawa-tinami (2 commits)")[![ucchee](https://avatars.githubusercontent.com/u/1192560?v=4)](https://github.com/ucchee "ucchee (1 commits)")[![hiwasa](https://avatars.githubusercontent.com/u/2560109?v=4)](https://github.com/hiwasa "hiwasa (1 commits)")[![nulltask](https://avatars.githubusercontent.com/u/291185?v=4)](https://github.com/nulltask "nulltask (1 commits)")[![polidog](https://avatars.githubusercontent.com/u/284778?v=4)](https://github.com/polidog "polidog (1 commits)")[![ryuzo98](https://avatars.githubusercontent.com/u/1152053?v=4)](https://github.com/ryuzo98 "ryuzo98 (1 commits)")

---

Tags

frameworkethnam

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ethnam-getopt/health.svg)

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

###  Alternatives

[hemp/presenter

Easy Model Presenters in Laravel

247592.6k1](/packages/hemp-presenter)[pestphp/pest-plugin-stressless

Stressless plugin for Pest

67792.6k16](/packages/pestphp-pest-plugin-stressless)[ethnam/ethnam

web application framework.

2614.8k1](/packages/ethnam-ethnam)[wpstarter/framework

The WpStarter Framework - Laravel Framework for WordPress

1810.1k4](/packages/wpstarter-framework)

PHPackages © 2026

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