2017 © Pedro Peláez
 

library argparser

arg parser for php

image

pagon/argparser

arg parser for php

  • Tuesday, April 16, 2013
  • by hfcorriez
  • Repository
  • 0 Watchers
  • 4 Stars
  • 335 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 4 Versions
  • 1 % Grown

The README.md

Intro

ArgParser is a PHP library that help you parse the CLI arguments, (*1)

Examples

$arg_parser = new \Pagon\ArgParser();

// Add a short arguments and support enum type
$arg_parser->add('a', array('help' => 'a long time with he happy', 'enum' => array(
    'go' => 'do some thing with go'
)));

// Add long and short arguments
$arg_parser->add('--long|-l', array('help' => 'long arguments', 'enum' => array('a', 'b')));

// Will get the arguments you want
$args = $arg_parser->parse();

// Print the help message
echo $arg_parser->help();

License

(The MIT License), (*2)

Copyright (c) 2012 hfcorriez <hfcorriez@gmail.com>, (*3)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:, (*4)

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software., (*5)

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE., (*6)

The Versions

16/04 2013

dev-master

9999999-dev

arg parser for php

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

arguments argparser arguments parser

16/04 2013

0.2.1

0.2.1.0

arg parser for php

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

arguments argparser arguments parser

05/04 2013

0.2.0

0.2.0.0

arg parser for php

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

arguments argparser arguments parser

28/02 2013

0.1.0

0.1.0.0

arg parser for php

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

arguments argparser arguments parser