Registry / config / symfony-options-resolver

symfony-options-resolver

JSON →
library8.1.0phppackagistunverified

Provides an improved replacement for the array_replace PHP function.

composer require symfony/options-resolver
INSTALL
IMPORT
SIG · SYMFONY-OPTIONS-RE
S
symfony-options-resolver
configphpv8.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

OptionsResolver
use Symfony\Component\OptionsResolver\OptionsResolver;

Define and resolve configuration options with defaults and required fields.

use Symfony\Component\OptionsResolver\OptionsResolver; $resolver = new OptionsResolver(); $resolver->setDefaults(['host' => 'localhost', 'port' => 8080]); $resolver->setRequired(['username']); $options = $resolver->resolve(['username' => 'admin']); print_r($options);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
8.1.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
39 hits · last 30 days
node
34
Resources
symfony-options-resolver — pip install symfony-options-resolver · libregistry