PHPackages                             saboohy/argv - 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. saboohy/argv

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

saboohy/argv
============

A lightweight and developer-friendly PHP library for parsing command-line arguments.

v1.2.2(4w ago)05MITPHPPHP ^8.2

Since Jun 6Pushed 4w agoCompare

[ Source](https://github.com/saboohy/argv)[ Packagist](https://packagist.org/packages/saboohy/argv)[ Docs](https://github.com/saboohy/argv)[ RSS](/packages/saboohy-argv/feed)WikiDiscussions main Synced 1w ago

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

Argv
====

[](#argv)

Argv is a lightweight PHP library for parsing command-line arguments (`$argv`). It provides a simple API for extracting commands, options, flags, and arguments from CLI input.

Features
--------

[](#features)

- Parse commands from CLI input
- Extract options and flags
- Access positional arguments easily
- Simple and intuitive API
- Zero dependencies
- PHP 8.2+ compatible

Requirements
------------

[](#requirements)

- PHP 8.2+
- Composer

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

[](#installation)

Install the package via Composer:

```
composer require saboohy/argv

```

Quick Start
-----------

[](#quick-start)

```
