All Projects → getopt-php → Getopt Php

getopt-php / Getopt Php

Licence: mit
A PHP library for command-line argument processing

Projects that are alternatives of or similar to Getopt Php

Argh
Argh! A minimalist argument handler.
Stars: ✭ 752 (+146.56%)
Mutual labels:  cli, command-line, argument-parser
Caporal.js
A full-featured framework for building command line applications (cli) with node.js
Stars: ✭ 3,279 (+975.08%)
Mutual labels:  cli, command-line, argument-parser
Clikt
Multiplatform command line interface parsing for Kotlin
Stars: ✭ 1,658 (+443.61%)
Mutual labels:  cli, command-line, argument-parser
Clipp
easy to use, powerful & expressive command line argument parsing for modern C++ / single header / usage & doc generation
Stars: ✭ 687 (+125.25%)
Mutual labels:  cli, command-line, argument-parser
Deno Cliffy
Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Stars: ✭ 149 (-51.15%)
Mutual labels:  cli, command-line, argument-parser
Ff
Find files (ff) by name, fast!
Stars: ✭ 257 (-15.74%)
Mutual labels:  cli, command-line
Pushbullet Cli
Access Pushbullet from the command line
Stars: ✭ 260 (-14.75%)
Mutual labels:  cli, command-line
Imessage
💬 Send iMessages from command-line
Stars: ✭ 261 (-14.43%)
Mutual labels:  cli, command-line
Define
A command-line dictionary (thesaurus) app, with access to multiple sources, written in Go.
Stars: ✭ 298 (-2.3%)
Mutual labels:  cli, command-line
Websocat
Command-line client for WebSockets, like netcat (or curl) for ws:// with advanced socat-like functions
Stars: ✭ 3,477 (+1040%)
Mutual labels:  cli, command-line
Cliffy
NodeJS Framework for Interactive CLIs
Stars: ✭ 263 (-13.77%)
Mutual labels:  cli, command-line
Picocli
Picocli is a modern framework for building powerful, user-friendly, GraalVM-enabled command line apps with ease. It supports colors, autocompletion, subcommands, and more. In 1 source file so apps can include as source & avoid adding a dependency. Written in Java, usable from Groovy, Kotlin, Scala, etc.
Stars: ✭ 3,286 (+977.38%)
Mutual labels:  cli, command-line
Cli
A simple, fast, and fun package for building command line apps in Go
Stars: ✭ 16,995 (+5472.13%)
Mutual labels:  cli, command-line
Editly
Slick, declarative command line video editing & API
Stars: ✭ 3,162 (+936.72%)
Mutual labels:  cli, command-line
Perfops Cli
A simple command line tool to interact with hundreds of servers around the world.
Stars: ✭ 263 (-13.77%)
Mutual labels:  cli, command-line
Gif For Cli
opensource.googleblog.com/2018/06/tenor-gif-for-cli.html
Stars: ✭ 2,772 (+808.85%)
Mutual labels:  cli, command-line
Arduino Cli
Arduino command line tool
Stars: ✭ 3,173 (+940.33%)
Mutual labels:  cli, command-line
Teip
Select partial standard input and replace with the result of another command efficiently
Stars: ✭ 280 (-8.2%)
Mutual labels:  cli, command-line
Onefetch
Git repository summary on your terminal
Stars: ✭ 3,680 (+1106.56%)
Mutual labels:  cli, command-line
Doitlive
Because sometimes you need to do it live
Stars: ✭ 3,073 (+907.54%)
Mutual labels:  cli, command-line

GetOpt.PHP

Build Status Coverage Status Latest Stable Version Total Downloads License

GetOpt.PHP is a library for command-line argument processing. It supports PHP version 5.4 and above.

Releases

For an overview of the releases with a changelog please have look here: https://github.com/getopt-php/getopt-php/releases

Features

  • Supports both short (e.g. -v) and long (e.g. --version) options
  • Option aliasing, ie. an option can have both a long and a short version
  • Cumulative short options (e.g. -vvv)
  • Two alternative notations for long options with arguments: --option value and --option=value
  • Collapsed short options (e.g. -abc instead of -a -b -c), also with an argument for the last option (e.g. -ab 1 instead of -a -b 1)
  • Two alternative notations for short options with arguments: -o value and -ovalue
  • Quoted arguments (e.g. --path "/some path/with spaces") for string processing
  • Options with multiple arguments (e.g. --domain example.org --domain example.com)
  • Operand (positional arguments) specification, validation and limitation
  • Command routing with specified options and operands
  • Help text generation
  • Default argument values
  • Argument validation

Upgrading

If you are still using a legacy version of GetOpt.PHP, please consider upgrading to version 3.

Only a few adjustments to your code are required to benefit from a lot of improvements. Refer to the upgrade guide for details.

Documentation

License

GetOpt.PHP is published under the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].