PHPackages                             netfocusinc/argh - 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. netfocusinc/argh

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

netfocusinc/argh
================

Argh! PHP Argument Helper. Easily parse all types of command line arguments in PHP CLI scripts.

0.1.0(7y ago)232PHP

Since Sep 25Pushed 7y ago1 watchersCompare

[ Source](https://github.com/netfocusinc/argh)[ Packagist](https://packagist.org/packages/netfocusinc/argh)[ RSS](/packages/netfocusinc-argh/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (5)Dependencies (1)Versions (6)Used By (0)

Argh
====

[](#argh)

> "Argh" is short for *Argument Helper*.

Interpret PHP command line arguments with ease so you can focus on your CLI application.

- More about Argh at [Argh! Argument Helper for PHP CLI](https://www.netfocusinc.com/argh)
- Detailed documentation in the [Argh! Wiki](https://github.com/netfocusinc/argh/wiki)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/a2ca4c4fd931fafc08aef60b7a723dbc3d9b13999371f3127c120efd83f8f578/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e6574666f637573696e632f617267682f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/netfocusinc/argh/?branch=master)

[![Build Status](https://camo.githubusercontent.com/84382f8eadf2eb048364974bc2a9679b232b8c66c43ead3e54d7a72cbc918f63/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e6574666f637573696e632f617267682f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/netfocusinc/argh/build-status/master)

### System Requirements

[](#system-requirements)

This project has been developed and tested with the following (see list below), and has yet to be tested using other operating systems or versions of PHP.

- PHP 7.2.14
- CentOS 7.6

### Installing

[](#installing)

There are two methods of installing Argh. Composer is recommended.

1. Composer
2. Phar (PHP Archive)

More detailed instructions can be found at [Argh Installation Instructions](https://github.com/netfocusinc/argh/wiki/Installation)

#### Composer Installation

[](#composer-installation)

[Composer](https://getcomposer.org) is the preferred method for installation.

```
$ composer require netfocusinc/argh

$ php vendor/netfocusinc/argh/bin/argh.php about
Argh! by Benjamin Hough, Net Focus Inc. - https://www.netfocusinc.com/argh

```

#### Phar (PHP Archive)

[](#phar-php-archive)

Releases can be downloaded from [Argh's Github Releases](https://github.com/netfocusinc/argh/releases).

```
$ cd path/to/argh
$ php argh.phar about
Argh! by Benjamin Hough, Net Focus Inc. - https://www.netfocusinc.com/argh

```

### Basic Usage

[](#basic-usage)

Using Argh is an easy way to interpret command line arguments in your PHP CLI scripts.

When your PHP CLI script is invoked with command line arguments `$ php myprogram.php --message='Hello World!'`

```
