GetOpt.php
a better getopt for php

View the Project on GitHub getopt-php/getopt-php

Build Status Coverage Status Latest Stable Version Total Downloads Total Downloads

Development

GetOpt has received contributions from several people in the past, for which we are deeply thankful. If you would like to contribute, feel free to create an issue or clone the source and submit a pull request. If you are planning to hack on GetOpt yourself, please read the rest of this page for some general information.

Guidelines

Running the Tests

If PHPUnit is already installed, calling phpunit in the project directory will run the test suite. However, if it is not, you can pull it in as a local dependency by running:

$ make install-dependencies

This will download Composer and then run it to install GetOpt’s development dependencies (i.e. PHPUnit). After that, the test suite can be executed like this:

$ make test