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.
make-dev/orca
dmstr/symfony-system-resources-bundle
dmstr/symfony-job-queue-bundle
dmstr/openapi-json-schema-bundle
dmstr/keycloak-security-bundle
dmstr/doctrine-audit-log-bundle
dmstr/api-platform-utils-bundle
dmstr/api-configuration-bundle
chrisdev/ux-components
baks-dev/finances
emuniq/filament-browser-notifications
syriable/filament-translator
hungnm28/livewire-form
wenprise/eloquent
crudly/encrypted
fadion/bouncy
cuci/prototurk-sdk
gos/pubsub-router-bundle
cuci/prototurk-sdk-symfony
clementtalleu/easyadmin-markdown-bundle