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: Installation permalink: /installation.html

{{ page.title }}

The recommended way of installing GetOpt.php is to use Composer.

Use composer

$ /path/to/composer require ulrichsg/getopt-php

Replace ^3.0 by the release number you want to use (a list of releases is available on Packagist).

Manually edit composer.json

Add it to your composer.json file like this:

{
    "require": {
        "ulrichsg/getopt-php": "^3.2"
    }
}

Afterwards update the package or all packages:

# update only getopt-php
$ /path/to/composer update ulrichsg/getopt-php

# update all packages
$ /path/to/composer update

Download and install manually

If not using Composer, you can download the desired release from GitHub and integrate it into your application manually. GetOpt.php does not have any external dependencies.

In this case you have to configure an autoload mechanism or load all files manually too.

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.
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
codeflextech/permission-manager
karnoweb/livewire-datepicker
sayedenam/sayed-dashboard
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui