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

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

xinc/getopt
===========

Command line arguments parser for PHP 5.3

3.1.0(10y ago)0851MITPHPPHP &gt;=5.4.4

Since Jan 4Pushed 10y ago1 watchersCompare

[ Source](https://github.com/xinc-develop/xinc-getopt)[ Packagist](https://packagist.org/packages/xinc/getopt)[ Docs](http://ulrichsg.github.io/getopt-php)[ RSS](/packages/xinc-getopt/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (19)Used By (1)

Xinc.Getopt
===========

[](#xincgetopt)

This is a friendly for of Ulrichsg/Getopt.PHP. It is a fine library, but the usage is not flexible enough to suit xincs requirements.

Getopt.PHP is a library for command-line argument processing. It supports PHP version 5.3 and above.

Features
--------

[](#features)

- Supports both short (eg. `-v`) and long (eg. `--version`) options
- Option aliasing, ie. an option can have both a long and a short version
- Collapsed short options (eg. `-abc` instead of `-a -b -c`)
- Cumulative options (eg. `-vvv`)
- Options may take optional or mandatory arguments
- Two alternative notations for long options with arguments: `--option value` and `--option=value`
- Collapsed short options with mandatory argument at the end (eg. `-ab 1` instead of `-a -b 1`)

Documentation
-------------

[](#documentation)

- [Documentation for the original version (2.0+)](http://ulrichsg.github.io/getopt-php/)

License
-------

[](#license)

Xinc.Getopt is published under the [MIT License](http://www.opensource.org/licenses/mit-license.php).

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 62.5% 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 ~93 days

Recently: every ~37 days

Total

18

Last Release

3705d ago

Major Versions

1.4.1 → 2.0.02014-01-30

2.3.0 → 3.0.02015-12-12

PHP version history (2 changes)1.0.0PHP &gt;=5.3.0

3.0.0PHP &gt;=5.4.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/64424?v=4)[Sebastian Knapp](/maintainers/giftnuss)[@giftnuss](https://github.com/giftnuss)

---

Top Contributors

[![ulrichsg](https://avatars.githubusercontent.com/u/197901?v=4)](https://github.com/ulrichsg "ulrichsg (45 commits)")[![jochenvdv](https://avatars.githubusercontent.com/u/6173051?v=4)](https://github.com/jochenvdv "jochenvdv (6 commits)")[![graste](https://avatars.githubusercontent.com/u/203540?v=4)](https://github.com/graste "graste (5 commits)")[![avargas](https://avatars.githubusercontent.com/u/169653?v=4)](https://github.com/avargas "avargas (3 commits)")[![kamermans](https://avatars.githubusercontent.com/u/266265?v=4)](https://github.com/kamermans "kamermans (2 commits)")[![geoffroy-aubry](https://avatars.githubusercontent.com/u/1247448?v=4)](https://github.com/geoffroy-aubry "geoffroy-aubry (2 commits)")[![christiaan](https://avatars.githubusercontent.com/u/118490?v=4)](https://github.com/christiaan "christiaan (1 commits)")[![kler](https://avatars.githubusercontent.com/u/966132?v=4)](https://github.com/kler "kler (1 commits)")[![mfn](https://avatars.githubusercontent.com/u/87493?v=4)](https://github.com/mfn "mfn (1 commits)")[![misterion](https://avatars.githubusercontent.com/u/196737?v=4)](https://github.com/misterion "misterion (1 commits)")[![Nyholm](https://avatars.githubusercontent.com/u/1275206?v=4)](https://github.com/Nyholm "Nyholm (1 commits)")[![sabl0r](https://avatars.githubusercontent.com/u/1169879?v=4)](https://github.com/sabl0r "sabl0r (1 commits)")[![tlj](https://avatars.githubusercontent.com/u/226029?v=4)](https://github.com/tlj "tlj (1 commits)")[![CHH](https://avatars.githubusercontent.com/u/16783?v=4)](https://github.com/CHH "CHH (1 commits)")[![Firehed](https://avatars.githubusercontent.com/u/354842?v=4)](https://github.com/Firehed "Firehed (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[illuminate/console

The Illuminate Console package.

13046.0M6.4k](/packages/illuminate-console)[styleci/cli

The CLI tool for StyleCI

71470.5k9](/packages/styleci-cli)[winbox/args

Windows command-line formatter

20720.9k21](/packages/winbox-args)[macopedia/magento2-categoryimporter

Category Importer for Magento 2

344.7k](/packages/macopedia-magento2-categoryimporter)

PHPackages © 2026

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