symfony/options-resolver
Provides an improved replacement for the array_replace PHP function observed · 2026-08-28
Health v2 · maintenance only
94/100
- Activity 97
- Release rhythm 86
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 5.5
- age_days: 5222
- days_rel: 96
- days_push: 19
- n_releases_24m: 19
Adoption not part of the score
3230 stars · 28 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A standalone Symfony PHP component that improves on array_replace for handling configuration options. It provides required options, defaults, type and value validation, and normalization for option arrays.
Use cases
- resolve options arrays with defaults in php
- validate configuration options types and values
- require certain options to be passed
- normalize option values before use
- replace boilerplate array_merge config handling
- define nested or prototype options
When to choose
- you build PHP libraries or classes accepting an options array
- you want declarative defaults, required options, and validation instead of manual isset checks
- you already use Symfony components
When to avoid
- your project is not PHP
- you only need simple array merging with no validation
- you prefer constructor promotion or DTO-based configuration
Facets
library · maturity stable
configuration-management developer-tools developer-tools web-development backend php cross-platform options-resolver array-replace defaults validation symfony-component composer
6 sources
- readme: https://github.com/symfony/options-resolver · fetched 2026-08-28 · c61e8b9e07b6
- homepage: https://symfony.com/options-resolver · fetched 2026-08-29 · 60c84222f361
- site_page: https://symfony.com/doc · fetched 2026-08-29 · 44889134f4fb
- site_page: https://symfony.com/doc/current/components/options_resolver.html · fetched 2026-08-29 · 1b47ac0fd39e
- site_page: https://symfony.com/releases · fetched 2026-08-29 · 2fd410222cfe
- site_page: https://symfony.com/blog/category/releases · fetched 2026-08-29 · 98212d5a6d55
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| symfony/options-resolver | main | 94 |
For agents
markdown · JSON · MCP: product_card(name="symfony/options-resolver")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem