PHPackages                             polidog/object-access - 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. polidog/object-access

ActiveLibrary

polidog/object-access
=====================

0.0.1(7y ago)05MITPHPPHP ^7.1

Since Sep 18Pushed 7y agoCompare

[ Source](https://github.com/polidog/object-access)[ Packagist](https://packagist.org/packages/polidog/object-access)[ RSS](/packages/polidog-object-access/feed)WikiDiscussions master Synced 2mo ago

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

polidog/object-access
=====================

[](#polidogobject-access)

[![Build Status](https://camo.githubusercontent.com/6dc4d3ed942d35a03aab7c864f1416c6968f706a993771a55c3195616f823c94/68747470733a2f2f7472617669732d63692e6f72672f706f6c69646f672f6f626a6563742d6163636573732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/polidog/object-access)

This library provides object property accessor. It is very simple.
It support only object. Array is No support.

Installation
------------

[](#installation)

```
$ composer req polidog/object-access

```

Usage
-----

[](#usage)

```
class User {

    /**
     * @var int
     */
    private $id;

    /**
     * @var string
     */
    private $name;

    /**
     * Sample constructor.
     * @param int $id
     * @param string $name
     */
    public function __construct(int $id, string $name)
    {
        $this->id = $id;
        $this->name = $name;
    }

    /**
     * @return string
     */
    public function getName(): string
    {
        return $this->name;
    }

}

$user = new User(120,'test-user');
$accessor = \Polidog\ObjectAccess\ObjectAccess::createAccessor();
$accessor->setter($user, 'name', 'change-name-user');

var_dump($user->getName()); // change-name-user

```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity47

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

Unknown

Total

1

Last Release

2796d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b043af7ae4c4ea7a438c64e76033730db386091ba0275f6e7c4e09def71a68bb?d=identicon)[polidog](/maintainers/polidog)

---

Top Contributors

[![polidog](https://avatars.githubusercontent.com/u/284778?v=4)](https://github.com/polidog "polidog (2 commits)")

---

Tags

objectphpphp-library

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/polidog-object-access/health.svg)

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

PHPackages © 2026

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