PHPackages                             therefinery/relatedentriesautomation - 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. therefinery/relatedentriesautomation

ActiveCraft-plugin[Utility &amp; Helpers](/categories/utility)

therefinery/relatedentriesautomation
====================================

Provides a field specify selection criteria for providing related entries

0.3.10(6y ago)1215MITPHPCI failing

Since Jul 6Pushed 6y ago2 watchersCompare

[ Source](https://github.com/the-refinery/relatedentriesautomation)[ Packagist](https://packagist.org/packages/therefinery/relatedentriesautomation)[ RSS](/packages/therefinery-relatedentriesautomation/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (1)Versions (20)Used By (0)

relatedentriesautomation plugin for Craft CMS 3.x
=================================================

[](#relatedentriesautomation-plugin-for-craft-cms-3x)

Provides a field specify selection criteria for providing related entries

Using with templates
--------------------

[](#using-with-templates)

Calling the field by itself will return an object that defines the query criteria for finding related entries. To turn this raw data into a set of useful entries you have to pass it into a filter service function that can build a real-time query and return a list of entity ids for related entries. The easyist way to do that is to use the `craft.relatedentriesautomation.buildEnityQuery()` function.

```
{% set entryIds = craft.relatedentriesautomation.buildEnityQuery(block.sourceCriteria) %}
{% set relatedEntries = craft.entries(entryIds).visibility('not  hidden') %}
```

`relatedEntries` contains a list of entries you can iterate over using `{% for entry in relatedEntries %}` or a similar twig function.

debuging output in templates
----------------------------

[](#debuging-output-in-templates)

It's possible to outut the SQL that's used to fetch the result set to the page.

```
{% set queryinfo = craft.relatedentriesautomation.filterEntries(block.sourceCriteria) %}
{% set entryIds = craft.relatedentriesautomation.entityQueryWithIds(queryinfo.result) %}
{{ queryinfo | json_encode(constant('JSON_PRETTY_PRINT')) }}
{% set relatedEntries = craft.entries(entryIds).visibility('not  hidden') %}
```

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

[](#requirements)

This plugin requires Craft CMS 3.0.0 or later.

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

[](#installation)

To install the plugin, follow these instructions.

1. Open your terminal and go to your Craft project:

    ```
     cd /path/to/project

    ```
2. Then install the plugin:

    ```
     composer require the-refinery/relatedentriesautomation

    ```
3. In the Control Panel, go to Settings → Plugins and click the “Install” button for RelatedEntriesAutomation.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

Established project with proven stability

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

Recently: every ~59 days

Total

19

Last Release

2232d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/21fb21a2c32b886084d3fc5dbd8439eac130cd8897d1cf8b542f58bb6700302d?d=identicon)[jmcgaha](/maintainers/jmcgaha)

---

Top Contributors

[![criticalmash](https://avatars.githubusercontent.com/u/1686938?v=4)](https://github.com/criticalmash "criticalmash (23 commits)")

---

Tags

craft3craftcms-plugincmsCraftcraftcmscraft-pluginrelatedentriesautomation

### Embed Badge

![Health badge](/badges/therefinery-relatedentriesautomation/health.svg)

```
[![Health](https://phpackages.com/badges/therefinery-relatedentriesautomation/health.svg)](https://phpackages.com/packages/therefinery-relatedentriesautomation)
```

###  Alternatives

[verbb/navigation

Create navigation menus for your site.

90683.7k17](/packages/verbb-navigation)[verbb/formie

The most user-friendly forms plugin for Craft.

101372.9k40](/packages/verbb-formie)[verbb/comments

Add comments to your site.

13753.1k](/packages/verbb-comments)[verbb/tablemaker

Create customizable and user-defined table fields.

40168.8k1](/packages/verbb-tablemaker)[supercool/tablemaker

Create customizable and user-defined table fields.

40141.7k](/packages/supercool-tablemaker)[pennebaker/craft-architect

CraftCMS plugin to generate content models from JSON/YAML data.

72148.5k5](/packages/pennebaker-craft-architect)

PHPackages © 2026

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