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 2w ago

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

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity62

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

2281d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/49672?v=4)[Jonathan McGaha](/maintainers/jmcgaha)[@jmcgaha](https://github.com/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/formie

The most user-friendly forms plugin for Craft.

100387.6k59](/packages/verbb-formie)[nystudio107/craft-seomatic

SEOmatic facilitates modern SEO best practices &amp; implementation for Craft CMS 5. It is a turnkey SEO system that is comprehensive, powerful, and flexible.

1741.5M52](/packages/nystudio107-craft-seomatic)[verbb/navigation

Create navigation menus for your site.

92698.4k18](/packages/verbb-navigation)[verbb/field-manager

Manage your fields and field groups with ease.

195612.2k10](/packages/verbb-field-manager)[verbb/workflow

Enforce multi-step review processes for creating entries.

138123.0k1](/packages/verbb-workflow)[verbb/comments

Add comments to your site.

13753.7k](/packages/verbb-comments)

PHPackages © 2026

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