sebastian/cli-parser

Library for parsing CLI options

Maintainers

👁 sebastian

Package info

github.com/sebastianbergmann/cli-parser

pkg:composer/sebastian/cli-parser

Statistics

Installs: 564 916 894

Dependents: 28

Suggesters: 0

Stars: 1 206

Open Issues: 2

5.0.0 2026-02-06 04:39 UTC

Requires

  • php: >=8.4

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

BSD-3-Clause 48a4654fa5e48c1c81214e9930048a572d4b23ca

  • Sebastian Bergmann <sebastian.woop@phpunit.de>

README

👁 Latest Stable Version
👁 CI Status
👁 codecov

sebastian/cli-parser

Library for parsing $_SERVER['argv'], extracted from phpunit/phpunit.

Installation

You can add this library as a local, per-project dependency to your project using Composer:

composer require sebastian/cli-parser

If you only need this library during development, for instance to run your project's test suite, then you should add it as a development-time dependency:

composer require --dev sebastian/cli-parser