# symfony/property-access

Provides functions to read and write from/to an object or array using a simple string notation

Repository: https://github.com/symfony/property-access
Canonical: https://ross.abutalabs.com/products/property-access
Homepage: https://symfony.com/property-access
Language: PHP
License: MIT
License Family: permissive
Topics: php, symfony, component, symfony-component, access, array, extraction, index, injection, object, property, reflection, property-path
Last push: 2026-08-22T13:40:16+00:00

## Health v2 (maintenance only)
Score: 99/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 99, longevity 100
- inputs: {"age_days": 4980, "days_push": 11, "days_rel": 11, "gap_med": 0, "n_releases_24m": 32}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2814, forks 26 (observed 2026-08-28T04:07:23.783275+00:00)

## What it is
A Symfony PHP component that reads and writes values from objects and arrays using simple string property-path notation (e.g. 'user[address][city]' or 'child.name'). It uses reflection and supports getters, issers, hassers, adders/removers, and magic methods.

## Use cases
- read nested array values with string paths
- get and set object properties dynamically in php
- access object graph via dot notation
- write to nested arrays using index notation
- resolve property paths on objects with getters and setters
- safely traverse nullable property paths returning null

## When to choose
- you need dynamic, string-based access to object or array data in PHP
- you are building forms, serializers, or validators that map data by property path
- you are already in the Symfony ecosystem

## When to avoid
- you only need simple direct property access with no dynamic paths
- you work outside PHP or need typed/compiled property access

## Facets
- artifact type: library
- maturity: stable
- function: serialization, developer-tools
- domain: developer-tools, web-development, backend
- platform: php
- tags: property-access, property-path, reflection, symfony-component, object-graph, array-access

## Member repositories
- symfony/property-access (main) score 99

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:23.783275+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T08:13:29.249074+00:00, confidence not recorded.
  - readme: https://github.com/symfony/property-access (fetched 2026-08-28T04:07:23.783275+00:00, sha 6fa0c64ca843)
  - homepage: https://symfony.com/property-access (fetched 2026-08-29T09:53:57.701842+00:00, sha 89cf94aa7637)
  - site_page: https://symfony.com/doc (fetched 2026-08-29T09:53:57.704357+00:00, sha 44889134f4fb)
  - site_page: https://symfony.com/doc/current/components/property_access.html (fetched 2026-08-29T09:53:57.706492+00:00, sha 10c77fc65343)
  - site_page: https://symfony.com/releases (fetched 2026-08-29T09:53:57.708754+00:00, sha 2fd410222cfe)
  - site_page: https://symfony.com/blog/category/releases (fetched 2026-08-29T09:53:57.710921+00:00, sha 83b70dd163fb)
- Data as of 2026-08-30T08:39:29.467469+00:00.
