PHPackages                             niktwenty3/related-by-taxonomy - 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. niktwenty3/related-by-taxonomy

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

niktwenty3/related-by-taxonomy
==============================

A Statamic addon that returns related entries using common taxonomy terms (tags).

2445↓50%PHP

Since Sep 11Pushed 1y ago2 watchersCompare

[ Source](https://github.com/niktwenty3/related-by-taxonomy)[ Packagist](https://packagist.org/packages/niktwenty3/related-by-taxonomy)[ RSS](/packages/niktwenty3-related-by-taxonomy/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (5)Used By (0)

Related By Taxonomy
===================

[](#related-by-taxonomy)

A Statamic addon that returns related entries using common taxonomy terms (tags).

Features
--------

[](#features)

Very basic for now.

How to Install
--------------

[](#how-to-install)

Will have to look into that. Never done a composer package... yet.

But, most likely it will look like this:

```
composer require niktwenty3/related-by-taxonomy
```

How to Use
----------

[](#how-to-use)

For now its very limited but the basic usage is:

```
{{ relbytaxonomy taxonomies="tags|categories|products|authors|features" modifiers="1.2|1.5|.5|.5|1" }}
    {{ related_entries }}

            {{ title }}

    {{ /related_entries }}
{{ /relbytaxonomy }}

```

The taxonomies parameters accepts the taxonomies that will be searched for common terms with the current entry.

The modifiers parameter accepts the modifier that will be multiplied to produce the relationship score.

How it works
------------

[](#how-it-works)

1. The tag will search all posts in the current collection for common tags and will add a score on each entry depending on how many it found.
2. The score is calculated by multiplying the modifier for the taxonomy by 1.
3. The list created is sorted descinding by higher score and then sliced to keep only the top 4 results which are then sorted by most recent.
4. The tag returns the results in the {{ related\_entries }} variable as an object array in wich each item is a Statamic entry.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity26

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/07130e52dde901063da2c0dabb92c6c527ac961d7a763929f928334c1d9a9f71?d=identicon)[niktwenty3](/maintainers/niktwenty3)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/niktwenty3-related-by-taxonomy/health.svg)

```
[![Health](https://phpackages.com/badges/niktwenty3-related-by-taxonomy/health.svg)](https://phpackages.com/packages/niktwenty3-related-by-taxonomy)
```

###  Alternatives

[mischiefcollective/colorjizz

Classes for manipulating colors, converting to different formats and finding color harmonies

286847.8k13](/packages/mischiefcollective-colorjizz)[smile/module-map

Smile Map Utilities Module

10536.8k2](/packages/smile-module-map)[t3kit/theme-t3kit

Base Theme fot t3kit project

2410.2k](/packages/t3kit-theme-t3kit)

PHPackages © 2026

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