PHPackages                             d0riven/php-flags - 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. d0riven/php-flags

ActiveLibrary

d0riven/php-flags
=================

PHP command line option parser

0.1(5y ago)06[3 issues](https://github.com/d0riven/php-flags/issues)MITPHPCI failing

Since Aug 5Pushed 5y ago1 watchersCompare

[ Source](https://github.com/d0riven/php-flags)[ Packagist](https://packagist.org/packages/d0riven/php-flags)[ RSS](/packages/d0riven-php-flags/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (7)Versions (2)Used By (0)

PHP Flags
=========

[](#php-flags)

This library is a parser of command line arguments that can be used sensibly without looking at the documentation.

Feature
-------

[](#feature)

- Explicit declarations.
- Support for required, optional and multiple values.
- Check type of value.
- Simple notation.
- Automatic generation of usage.

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

[](#installation)

todo write

Usage
-----

[](#usage)

### Method chain declaration

[](#method-chain-declaration)

example of ping command.
If you want to see other examples, see the script under `examples/chain/`.

```
