PHPackages                             sunnyflail/object-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. sunnyflail/object-accessor

ActiveLibrary

sunnyflail/object-accessor
==========================

A simple abstraction over accessing object properties

1.1.1(4y ago)041MITPHP

Since Jul 18Pushed 4y ago1 watchersCompare

[ Source](https://github.com/SunnyFlail/ObjectAccessor)[ Packagist](https://packagist.org/packages/sunnyflail/object-accessor)[ RSS](/packages/sunnyflail-object-accessor/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (4)Used By (0)

ObjectAccessor
==============

[](#objectaccessor)

A simple abstraction layer over accessing object properties

How to use
==========

[](#how-to-use)

After importing it via composer create a initial copy of `ObjectAccessor`

```
$accessor = new SunnyFlail\ObjectAccessor\ObjectAccessor();
```

Initialising
------------

[](#initialising)

To initialise access to object's properties use `ObjectAccessor::access`, providing object you want to access as an argument

```
$object = new Object();
$objectAccessor = $accessor->access($object);
```

Checking properties
-------------------

[](#checking-properties)

To check whether object has a property use `ObjectAccessor::has` providing property name as an argument

```
$hasProperty = $objectAccessor->has('property');
```

To check whether object has an initialised property use `ObjectAccessor::has` providing property name as an argument

```
$hasProperty = $objectAccessor->isInitialised('property');
```

Getting property value
----------------------

[](#getting-property-value)

To get property value use `ObjectAccessor::get`, providing property name as an argument

```
$propertyValue = $objectAccessor->get('property');
```

Changing property value
-----------------------

[](#changing-property-value)

To get property value use `ObjectAccessor::get`, providing property name as first argument and value as second

```
$objectAccessor->set('property', 123);
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Total

3

Last Release

1756d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/50b47ac5307f9f924ae62916c792bbfcabe962da1a0eaf68230b2199d4a6283f?d=identicon)[SunnyFlail](/maintainers/SunnyFlail)

---

Top Contributors

[![SunnyFlail](https://avatars.githubusercontent.com/u/82274752?v=4)](https://github.com/SunnyFlail "SunnyFlail (3 commits)")

### Embed Badge

![Health badge](/badges/sunnyflail-object-accessor/health.svg)

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

PHPackages © 2026

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