PHPackages                             hartmann/magic-property-extractor - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. hartmann/magic-property-extractor

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

hartmann/magic-property-extractor
=================================

Provides property information based on class documentation

0.1.1(6y ago)12.3kMITPHP

Since Jul 21Pushed 6y agoCompare

[ Source](https://github.com/mark-hartmann/magic-property-extractor)[ Packagist](https://packagist.org/packages/hartmann/magic-property-extractor)[ RSS](/packages/hartmann-magic-property-extractor/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

magic-property-extractor
========================

[](#magic-property-extractor)

This package adds an additional extractor for the [symfony/property-info](https://symfony.com/doc/current/components/property_info.html) package which is able to interpret `@property`, `@property-read` and `@property-write` tags documented in the DocComment of a class.

### Installation

[](#installation)

```
composer require hartmann/magic-property-extractor

```

### Usage

[](#usage)

```
use Hartmann\PropertyInfo\Extractor\PhpDocMagicExtractor

$magicExtractor = new PhpDocMagicExtractor();
$properties = $magicExtractor->getProperties(\Foo::class);
```

or [create a new PropertyInfoExtractor instance and provide it with a set of information extractors](https://symfony.com/doc/current/components/property_info.html#usage)

### [Extractable Information](https://symfony.com/doc/current/components/property_info.html#extractable-information)

[](#extractable-information)

This Extractor implements the following interfaces:

- `PropertyDescriptionExtractorInterface`
- `PropertyTypeExtractorInterface`
- `PropertyAccessExtractorInterface`
- `PropertyListExtractorInterface`

### Planned features

[](#planned-features)

- Support magic accessors and mutators

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Total

2

Last Release

2486d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1a2b9cbc9878208f8dfc12eaf51dd52aaced7a57a810c35d0731719bd162e7ca?d=identicon)[mark-hartmann](/maintainers/mark-hartmann)

---

Top Contributors

[![mark-hartmann](https://avatars.githubusercontent.com/u/21173286?v=4)](https://github.com/mark-hartmann "mark-hartmann (14 commits)")

---

Tags

symfonyphpdoctypepropertyextractorproperty-info

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hartmann-magic-property-extractor/health.svg)

```
[![Health](https://phpackages.com/badges/hartmann-magic-property-extractor/health.svg)](https://phpackages.com/packages/hartmann-magic-property-extractor)
```

###  Alternatives

[symfony/property-info

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

2.2k256.7M854](/packages/symfony-property-info)[symfony/property-access

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

2.8k295.3M2.5k](/packages/symfony-property-access)[symfony/type-info

Extracts PHP types information.

19751.9M114](/packages/symfony-type-info)[shapecode/hidden-entity-type-bundle

Hidden field for Symfony entities

28428.6k1](/packages/shapecode-hidden-entity-type-bundle)[spomky-labs/pwa-bundle

Progressive Web App Manifest Generator Bundle for Symfony.

6144.4k1](/packages/spomky-labs-pwa-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
