PHPackages                             arthem/object-reference-bundle - 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. arthem/object-reference-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

arthem/object-reference-bundle
==============================

Object reference bundle

1.0.0(1w ago)02.1k[1 PRs](https://github.com/4rthem/object-reference-bundle/pulls)MITPHPPHP ^8.5

Since Jun 5Pushed 2y ago1 watchersCompare

[ Source](https://github.com/4rthem/object-reference-bundle)[ Packagist](https://packagist.org/packages/arthem/object-reference-bundle)[ RSS](/packages/arthem-object-reference-bundle/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (11)Versions (5)Used By (0)

Object Reference bundle
=======================

[](#object-reference-bundle)

```
namespace App\Entity;

use Arthem\ObjectReferenceBundle\Mapping\Attribute\ObjectReference;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;

#[ORM\Entity]
class Story
{
    #[ORM\Column(type: Types::STRING, length: 36, nullable: true)]
    #[ObjectReference(keyLength: 15)]
    private \Closure|Actor $actor;
    private $actorId; // must be declared, even if not used
    private $actorType; // must be declared, even if not used

    /**
     * @return object|null
     */
    public function getActor(): ?Actor
    {
        if ($this->actor instanceof \Closure) {
            $this->actor = $this->actor->call($this);
        }

        return $this->actor;
    }

    public function setActor(?Actor $actor)
    {
        $this->actor = $actor;
    }
}
```

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance54

Moderate activity, may be stable

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 89.5% 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 ~749 days

Total

2

Last Release

8d ago

Major Versions

0.0.1 → 1.0.02026-06-25

PHP version history (2 changes)0.0.1PHP ^8.2

1.0.0PHP ^8.5

### Community

Maintainers

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

---

Top Contributors

[![4rthem](https://avatars.githubusercontent.com/u/2180032?v=4)](https://github.com/4rthem "4rthem (17 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/arthem-object-reference-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/arthem-object-reference-bundle/health.svg)](https://phpackages.com/packages/arthem-object-reference-bundle)
```

###  Alternatives

[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1189.8k](/packages/rcsofttech-audit-trail-bundle)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k14](/packages/2lenet-crudit-bundle)[kimai/kimai

Kimai - Time Tracking

4.8k9.0k1](/packages/kimai-kimai)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k61](/packages/open-dxp-opendxp)[ahmed-bhs/doctrine-doctor

Runtime analysis tool for Doctrine ORM integrated into Symfony Web Profiler. Unlike static linters, it analyzes actual query execution at runtime to detect performance bottlenecks, security vulnerabilities, and best practice violations during development with real execution context and data.

9410.8k](/packages/ahmed-bhs-doctrine-doctor)

PHPackages © 2026

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