{"id":13623634,"url":"https://github.com/getopt-php/getopt-php","last_synced_at":"2026-01-11T16:53:35.372Z","repository":{"id":1842319,"uuid":"2766864","full_name":"getopt-php/getopt-php","owner":"getopt-php","description":"A PHP library for command-line argument processing","archived":false,"fork":false,"pushed_at":"2022-12-13T20:40:18.000Z","size":496,"stargazers_count":333,"open_issues_count":2,"forks_count":63,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-04-14T09:45:45.936Z","etag":null,"topics":["argument-parser","arguments","cli","command-line","php"],"latest_commit_sha":null,"homepage":"http://getopt-php.github.io/getopt-php/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"kezzbracey/N-Coded","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/getopt-php.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-11-13T15:25:30.000Z","updated_at":"2024-03-07T18:44:57.000Z","dependencies_parsed_at":"2023-01-13T11:26:29.397Z","dependency_job_id":null,"html_url":"https://github.com/getopt-php/getopt-php","commit_stats":null,"previous_names":[],"tags_count":40,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getopt-php%2Fgetopt-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getopt-php%2Fgetopt-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getopt-php%2Fgetopt-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getopt-php%2Fgetopt-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/getopt-php","download_url":"https://codeload.github.com/getopt-php/getopt-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249097721,"owners_count":21212342,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["argument-parser","arguments","cli","command-line","php"],"created_at":"2024-08-01T21:01:34.023Z","updated_at":"2026-01-11T16:53:35.345Z","avatar_url":"https://github.com/getopt-php.png","language":"PHP","readme":"# GetOpt.PHP\n\n[![.github/workflows/push.yml](https://github.com/getopt-php/getopt-php/actions/workflows/push.yml/badge.svg)](https://github.com/getopt-php/getopt-php/actions/workflows/push.yml)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/2f0b9586f3f69d690647/test_coverage)](https://codeclimate.com/github/getopt-php/getopt-php/test_coverage)\n[![Maintainability](https://api.codeclimate.com/v1/badges/2f0b9586f3f69d690647/maintainability)](https://codeclimate.com/github/getopt-php/getopt-php/maintainability)\n[![Latest Stable Version](https://poser.pugx.org/ulrichsg/getopt-php/v/stable.svg)](https://packagist.org/packages/ulrichsg/getopt-php) \n[![Total Downloads](https://poser.pugx.org/ulrichsg/getopt-php/downloads.svg)](https://packagist.org/packages/ulrichsg/getopt-php) \n[![License](https://poser.pugx.org/ulrichsg/getopt-php/license.svg)](https://packagist.org/packages/ulrichsg/getopt-php)\n\nGetOpt.PHP is a library for command-line argument processing. It supports PHP version 7.1 and above.\n\n## Releases\n\nFor an overview of the releases with a changelog please have look here: https://github.com/getopt-php/getopt-php/releases\n\n## Features\n\n* Supports both short (e.g. `-v`) and long (e.g. `--version`) options\n* Option aliasing, ie. an option can have both a long and a short version\n* Cumulative short options (e.g. `-vvv`)\n* Two alternative notations for long options with arguments: `--option value` and `--option=value`\n* Collapsed short options (e.g. `-abc` instead of `-a -b -c`), also with an argument for the last option \n    (e.g. `-ab 1` instead of `-a -b 1`)\n* Two alternative notations for short options with arguments: `-o value` and `-ovalue`\n* Quoted arguments (e.g. `--path \"/some path/with spaces\"`) for string processing\n* Options with multiple arguments (e.g. `--domain example.org --domain example.com`)\n* Operand (positional arguments) specification, validation and limitation\n* Command routing with specified options and operands\n* Help text generation\n* Default argument values\n* Argument validation\n\n## Upgrading\n\nIf you are still using a legacy version of GetOpt.PHP, please consider upgrading to version 3.\n\nOnly a few adjustments to your code are required to benefit from a lot of improvements.\nRefer to the [upgrade guide](https://getopt-php.github.io/getopt-php/upgrade.html) for details.\n\n## Documentation\n\n* [Documentation for the current version (3.0+)](http://getopt-php.github.io/getopt-php/)\n* [Legacy documentation (1.4)](https://github.com/getopt-php/getopt-php/blob/1.4.1/README.markdown)\n\n## License\n\nGetOpt.PHP is published under the [MIT License](http://www.opensource.org/licenses/mit-license.php).\n","funding_links":[],"categories":["目录","Table of Contents","PHP"],"sub_categories":["命令行 Command Line","Command Line"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetopt-php%2Fgetopt-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgetopt-php%2Fgetopt-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetopt-php%2Fgetopt-php/lists"}