symfony

symfony/property-info

PHP MIT Dev Tools

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

2.2k stars
13 forks
active
GitHub

2.2k

Stars

13

Forks

0

Open issues

30

Contributors

v8.1.0 29 May 2026

AI Analysis

The PropertyInfo component extracts metadata about PHP class properties from multiple sources (Doctrine, PHPDoc, validators, etc.), enabling frameworks and libraries to introspect class structures programmatically. It is a foundational utility for developers building PHP frameworks, ORM tools, and validation systems that need reliable property type and attribute information. This is a specialized infrastructure component, not a general-purpose library.

Dev Tools Library Discovery value: 2/10
Documentation 8/10
Activity 9/10
Community 8/10
Code quality 5/10

Inferred from signals mentioned in the README (tests, CI, type safety) — not a review of the actual code.

Overall score 8/10

AI's overall editorial judgment — not an average of the bars above, can weigh other factors too.

php-introspection metadata-extraction symfony-component property-analysis type-detection
Actively maintained Well documented MIT licensed Niche/specialized use case Production ready
Deep Analysis · Based on README and public signals
3d ago

Symfony PropertyInfo: metadata extraction for PHP class properties, deeply embedded in framework ecosystem

PropertyInfo is a Symfony component that extracts and provides access to metadata about PHP class properties from multiple sources (type hints, annotations, serializer metadata). It serves as infrastructure for Symfony's serializer, validator, and form systems. Adoption is indirect and largely confined to Symfony ecosystem users; it is not a standalone tool most developers consciously choose, but rather a dependency pulled in through other Symfony components.

Origin

Created September 2015 as part of Symfony's modularization effort. Part of the Symfony component suite designed to handle reflection and metadata collection across popular PHP frameworks and libraries. Evolved alongside Symfony's serializer and validator components.

Growth

Star count has grown modestly from inception (2,229 stars as of 2026-07) but reflects the overall Symfony ecosystem adoption rather than independent growth. No recent acceleration visible. Growth is coupled to Symfony framework adoption and the broader shift toward stricter PHP typing (7.4+ union types, property promotion). Likely benefits from PHP 8+ adoption cycles.

In production

Adoption not directly verified from README. However, PropertyInfo is a dependency of symfony/serializer, symfony/validator, and symfony/form — all widely adopted Symfony components. Real-world usage likely exists wherever these components are used, but is largely transparent to end users. No explicit case studies or deployment documentation in README.

Code analysis
Architecture

Based on README, appears to follow a chain-of-responsibility or extractor pattern: multiple extractors (type, description, access, etc.) query different metadata sources (reflection, annotations, serializer, doctrine). Likely modular, allowing composition of different information sources. Exact implementation not visible from README alone.

Tests

Not documented in README. Standard Symfony component, likely covered by test suite in main symfony/symfony repository, but specifics unknown.

Maintenance

Last push 2026-07-05 (current date 2026-07-07), indicating active maintenance within 2 days of analysis date. Zero stars gained in last 7 days suggests stable, non-trending status typical of mature infrastructure. Part of monorepo managed centrally; maintenance occurs as part of Symfony release cycles rather than independent urgency.

Honest verdict

ADOPT IF: you are building Symfony applications and need to programmatically extract property metadata for serialization, validation, or form generation. AVOID IF: you need a standalone metadata extraction library outside Symfony ecosystem or are working with non-PHP codebases. MONITOR IF: you are considering it as a core dependency outside Symfony — integration cost may outweigh benefit; use native reflection or framework-specific alternatives instead.

Independent dimensions

Mainstream potential

2/10

Technical importance

6/10

Adoption evidence

3/10

Risks
  • Tight coupling to Symfony ecosystem means adoption and maintenance tied to Symfony's decisions; breaking changes in Symfony could cascade.
  • README mentions component is 'looking for a backer,' suggesting potential resource constraints or unclear long-term investment.
  • Metadata extraction from multiple sources (annotations, attributes, reflection) may have inconsistent behavior; handling priority among sources not clearly documented in README.
  • Adoption outside Symfony appears limited; standalone use outside Symfony context likely faces friction due to implicit dependencies.
  • Performance implications of multi-source metadata extraction not discussed; may be negligible but unknown at scale.
Prediction

Will continue as stable infrastructure component within Symfony ecosystem. Unlikely to gain adoption outside Symfony. May see modest growth aligned with PHP 8+ adoption and stricter typing, but no major inflection expected. Maintenance will remain steady but not accelerating.

0 found this helpful

Newsletter

Get analyses like this every Monday

Free weekly digest of the most interesting open-source discoveries.

Languages

PHP
100%

Information

Language
PHP
License
MIT
Last updated
5d ago
Created
131mo ago
Analyzed with
anthropic/claude-haiku-4-5

Stars over time

Loading…

Contributors over time

Top 100 contributors only — repos with more will plateau at 100.

Loading…

Open issues

No open issues — clean slate.

Open pull requests

Similar repos

symfony

symfony/property-access

The PropertyAccess component provides a unified API to read and write object...

2.8k PHP Dev Tools
symfony

symfony/config

The Symfony Config component provides a unified system for discovering,...

4.3k PHP Dev Tools
symfony

symfony/filesystem

The Symfony Filesystem component provides basic utilities for filesystem...

4.6k PHP Dev Tools
symfony

symfony/finder

Symfony Finder is a component that locates files and directories using a...

8.4k PHP Dev Tools
symfony

symfony/symfony-docs

This is the official Symfony framework documentation repository, serving as the...

2.3k PHP Web Dev
vs. alternatives
symfony/property-access

Closely related sibling component (2,823 stars). PropertyAccess reads/writes property values; PropertyInfo reads metadata about those properties. Often used together. PropertyAccess has higher star count, likely due to more direct developer interaction.

doctrine/orm

Doctrine's entity metadata system serves similar purpose for ORM entities. Competes in the ORM-specific domain; PropertyInfo is more general-purpose across any PHP class.

php-di/php-di

PHP-DI's reflection utilities perform overlapping metadata extraction. PropertyInfo is tighter integration with Symfony ecosystem.

laminas/laminas-reflection

Laminas framework equivalent for metadata extraction. Different ecosystem, similar domain, lower adoption.

php built-in reflection API

Native PHP ReflectionProperty and related classes provide raw reflection. PropertyInfo adds convenience layer and multi-source aggregation.