PHPackages                             cboxdk/statamic-reverse-relationship - 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. cboxdk/statamic-reverse-relationship

ActiveStatamic-addon[Utility &amp; Helpers](/categories/utility)

cboxdk/statamic-reverse-relationship
====================================

Traverse relationships in reverse — see which entries, terms, or assets reference the current item without storing anything on it.

v2.1.1(2mo ago)047MITPHPPHP ^8.2CI failing

Since Feb 27Pushed 2mo agoCompare

[ Source](https://github.com/cboxdk/statamic-reverse-relationship)[ Packagist](https://packagist.org/packages/cboxdk/statamic-reverse-relationship)[ Docs](https://github.com/cboxdk/statamic-reverse-relationship)[ RSS](/packages/cboxdk-statamic-reverse-relationship/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (6)Versions (4)Used By (0)

Reverse Relationship for Statamic
=================================

[](#reverse-relationship-for-statamic)

A Statamic addon that lets you traverse relationships in reverse. If entry B points to entry A, this addon lets A see all the B's that reference it — from a single source of truth, with no duplicated data and nothing to keep in sync.

Works with **entries**, **taxonomy terms**, and **assets**.

The Problem
-----------

[](#the-problem)

You have a `comments` collection where each comment points to a blog post. You want the blog post to show its comments. Without this addon, you'd have to manually maintain a list of comment IDs on each post — duplicating data and hoping it stays in sync.

The Solution
------------

[](#the-solution)

Add the `reverse_relationship` fieldtype to your blog post blueprint, tell it to look in the `comments` collection for entries whose `post` field points here, and you're done:

```
- handle: comments
  field:
    type: reverse_relationship
    collection: comments
    field: post
```

Then use it in your templates — just like any native Statamic field:

```
{{ comments sort="date:desc" limit="5" }}
    {{ author }}: {{ content }}
{{ /comments }}
```

Features
--------

[](#features)

- **Fieldtype** — add to any blueprint, works like a native `entries` field in templates
- **Antlers tag** — query reverse relationships from any template, no blueprint required
- **Editable mode** — attach/detach related items directly from the CP
- **Lazy query builder** — `limit`, `sort`, `paginate`, `count`, and scoped variables
- **Three modes** — entries, taxonomy terms, and assets

Quick Start
-----------

[](#quick-start)

```
composer require cboxdk/statamic-reverse-relationship
```

No config files, no publishing, no migrations.

Documentation
-------------

[](#documentation)

See [DOCUMENTATION.md](DOCUMENTATION.md) for full setup guide, templating examples, and configuration reference.

Requirements
------------

[](#requirements)

- PHP 8.2+
- Statamic 6.x
- Laravel 12+

Development
-----------

[](#development)

```
composer check    # Pint + PHPStan level 9 + Pest (69 tests)
```

License
-------

[](#license)

MIT

Credits
-------

[](#credits)

Originally designed and developed by [Sylvester Damgaard](https://github.com/cboxdk) while working at [TV2 Regionerne](https://github.com/tv2regionerne/statamic-reverse-relationship). Now maintained and actively developed under [Cbox](https://github.com/cboxdk) with a full rewrite for Statamic 6, Laravel 12, and Vue 3.

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance85

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 53.8% 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

78d ago

### Community

Maintainers

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

---

Top Contributors

[![sylvesterdamgaard](https://avatars.githubusercontent.com/u/2431914?v=4)](https://github.com/sylvesterdamgaard "sylvesterdamgaard (7 commits)")[![jacksleight](https://avatars.githubusercontent.com/u/126740?v=4)](https://github.com/jacksleight "jacksleight (5 commits)")[![theharisshah](https://avatars.githubusercontent.com/u/21083491?v=4)](https://github.com/theharisshah "theharisshah (1 commits)")

---

Tags

addonstatamicfieldtyperelationshipreverseentries

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/cboxdk-statamic-reverse-relationship/health.svg)

```
[![Health](https://phpackages.com/badges/cboxdk-statamic-reverse-relationship/health.svg)](https://phpackages.com/packages/cboxdk-statamic-reverse-relationship)
```

###  Alternatives

[visuellverstehen/statamic-classify

A useful helper to add CSS classes to all HTML tags generated by the bard editor.

20116.8k](/packages/visuellverstehen-statamic-classify)[marcorieser/statamic-livewire

A Laravel Livewire integration for Statamic.

2381.5k10](/packages/marcorieser-statamic-livewire)[withcandour/aardvark-seo

Save time and get your Statamic site to rank better with the SEO addon for Statamic.

13128.3k](/packages/withcandour-aardvark-seo)[aerni/livewire-forms

A Statamic forms framework powered by Laravel Livewire

2912.8k](/packages/aerni-livewire-forms)[mitydigital/feedamic

A fully-featured RSS and Atom feed generator for Statamic.

1064.0k](/packages/mitydigital-feedamic)

PHPackages © 2026

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