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: Localization permalink: /localization.html

{{ page.title }}

Texts shown to a user are localized using the Translator which is a simple key-value translation class using php files for a translation map. These files can be found in resources/localization and contributions are highly appreciated.

By default the Translator is using the English translations. You can change to a predefined translation by calling GetOpt::setLang($language) where $language is a two-letter iso code of the language.

<?php
\GetOpt\GetOpt::setLang('de');

Custom language files

You can also use custom language files by passing a path to your language file. The script must return an array in the same format as the bundled language files.

<?php
\GetOpt\GetOpt::setLang(__DIR__ . '/path/to/cn.php');

Translations missing in a language file are translated with the English translation table.

Errors messages

The messages of exceptions thrown because of user input are also translated using this translator.

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