PHPackages                             hgg/property-accessor - 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. hgg/property-accessor

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

hgg/property-accessor
=====================

The Symfony PropertyAccessor as a trait

v1.0.1(8y ago)0422MITPHP

Since Feb 24Pushed 8y ago1 watchersCompare

[ Source](https://github.com/hglattergotz/property-accessor)[ Packagist](https://packagist.org/packages/hgg/property-accessor)[ Docs](https://github.com/hglattergotz/property-accessor)[ RSS](/packages/hgg-property-accessor/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Symfony Property Access wrapper
===============================

[](#symfony-property-access-wrapper)

Provide a bit of convenience if your property access methods need to throw exceptions on an as needed basis.

Example:

```
$default = 'my default';
$throw   = false;
$value   = $this->getValue($obj, 'my.path.to.value', $default, $throw);

```

This would return the value at the given path if it exists, or the default value if not.

```
$default = 'my default';
$throw   = true;
$value   = $this->getValue($obj, 'my.path.to.value', $default, $throw);

```

This would return the value at the given path if it exists, or throw an exception if not.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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 ~191 days

Total

2

Last Release

3221d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/506901?v=4)[Henning Glatter-Götz](/maintainers/hglattergotz)[@hglattergotz](https://github.com/hglattergotz)

---

Top Contributors

[![hglattergotz](https://avatars.githubusercontent.com/u/506901?v=4)](https://github.com/hglattergotz "hglattergotz (5 commits)")

### Embed Badge

![Health badge](/badges/hgg-property-accessor/health.svg)

```
[![Health](https://phpackages.com/badges/hgg-property-accessor/health.svg)](https://phpackages.com/packages/hgg-property-accessor)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.5M378](/packages/easycorp-easyadmin-bundle)[symfony/ux-autocomplete

JavaScript Autocomplete functionality for Symfony

635.5M36](/packages/symfony-ux-autocomplete)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

53675.5k16](/packages/solspace-craft-freeform)[cognesy/instructor-php

The complete AI toolkit for PHP: unified LLM API, structured outputs, agents, and coding agent control

318117.1k1](/packages/cognesy-instructor-php)[api-platform/symfony

Symfony API Platform integration

354.0M110](/packages/api-platform-symfony)[symfony/ai-platform

PHP library for interacting with AI platform provider.

521.2M216](/packages/symfony-ai-platform)

PHPackages © 2026

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