# symfony/property-info

Extracts information about PHP class' properties using metadata of popular sources

Repository: https://github.com/symfony/property-info
Canonical: https://ross.abutalabs.com/products/property-info
Homepage: https://symfony.com/property-info
Language: PHP
License: MIT
License Family: permissive
Topics: php, symfony, component, symfony-component, doctrine, phpdoc, property, type, validator
Last push: 2026-08-25T14:25:57+00:00

## Health v2 (maintenance only)
Score: 99/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 99, longevity 100
- inputs: {"age_days": 3994, "days_push": 8, "days_rel": 11, "gap_med": 0, "n_releases_24m": 60}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2221, forks 13 (observed 2026-08-28T04:06:27.563108+00:00)

## What it is
A Symfony PHP component that extracts information about PHP class properties (types, visibility, descriptions, accessibility) from metadata sources like reflection, PHPDoc, PhpStan types, Doctrine, and serializer groups. It provides a unified extractor interface used by frameworks and libraries such as API Platform.

## Use cases
- get property types of a php class
- extract phpdoc metadata from class properties
- introspect class properties for serialization
- determine if a property is readable or writable via getters/setters
- build api resources from doctrine entities
- read phpstan type annotations from php code

## When to choose
- you need unified property metadata across reflection, phpdoc, doctrine, and serializer sources
- you're building serialization, validation, or API tooling in PHP
- you're already in the Symfony or API Platform ecosystem

## When to avoid
- you need runtime value access rather than class definition metadata (use symfony/property-access)
- you work outside PHP
- you only need simple reflection without docblock parsing

## Facets
- artifact type: library
- maturity: stable
- function: serialization, developer-tools, type-system
- domain: developer-tools, web-development, backend
- platform: php, cross-platform
- tags: symfony-component, phpdoc, reflection, doctrine, property-metadata, type-extraction

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

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:27.563108+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-30T02:45:48.440482+00:00, confidence not recorded.
  - readme: https://github.com/symfony/property-info (fetched 2026-08-28T04:06:27.563108+00:00, sha c49190613716)
  - homepage: https://symfony.com/property-info (fetched 2026-08-29T10:25:52.451604+00:00, sha cab7ca82dd66)
  - site_page: https://symfony.com/doc (fetched 2026-08-29T10:25:52.460505+00:00, sha 44889134f4fb)
  - site_page: https://symfony.com/doc/current/components/property_info.html (fetched 2026-08-29T10:25:52.462457+00:00, sha 835291882c40)
  - site_page: https://symfony.com/releases (fetched 2026-08-29T10:25:52.464466+00:00, sha 2fd410222cfe)
  - site_page: https://symfony.com/blog/category/releases (fetched 2026-08-29T10:25:52.466293+00:00, sha a84b8a49342e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
