Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Getopt Php Laravel Package

ulrichsg/getopt-php

Lightweight PHP library for parsing command-line options and arguments (getopt). Define short/long flags, required/optional values, and get a clean result for building CLI tools. No framework dependencies, simple API, supports help/usage output.

View on GitHub
Deep Wiki
Context7

layout: default title: Development permalink: /development.html

{{ page.title }}

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

  • GetOpt supports PHP versions back up to 5.4, so unfortunately, all those shiny language features from newer versions are off limits. Luckily, Travis ensures this automatically and will notify you if your pull request does not respect it (or if it breaks anything else).
  • With v2.0 we have adopted PSR-2 as coding conventions, so we would ask all contributors to adhere to it. You probably don't use it in your personal work, but it's the closest thing to a community consensus that the PHP world has, and thus we consider it appropriate for an open source project to use.
  • Please supply unit tests and doc comments wherever necessary.

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
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport
twbs/bootstrap4
php-http/client-implementation
phpcr/phpcr-implementation
cucumber/gherkin-monorepo
haydenpierce/class-finder
psr/simple-cache-implementation
uri-template/tests