PHPackages                             zlakomanoff/yii2-related-entities - 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. zlakomanoff/yii2-related-entities

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

zlakomanoff/yii2-related-entities
=================================

relatedentities

v0.1(8y ago)07GPL-3.0+PHP

Since May 16Pushed 8y ago1 watchersCompare

[ Source](https://github.com/zlakomanoff/yii2-related-entities)[ Packagist](https://packagist.org/packages/zlakomanoff/yii2-related-entities)[ RSS](/packages/zlakomanoff-yii2-related-entities/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

relatedentities
===============

[](#relatedentities)

relatedentities

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist zlakomanoff/yii2-related-entities "*"

```

or add

```
"zlakomanoff/yii2-related-entities": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

view

```

or

```

model

```
class MyRecord extends \zlakomanoff\relatedentities\RelatedActiveRecord
{

    public function rules()
    {
        return [
            [['field1', 'field2'], 'relation']
        ];
    }

    public function getField1()
    {
        return $this->hasMany(MyField1::class, ['id' => 'field1_id']);
    }

    public function getField2()
    {
        return $this->hasMany(MyField2::class, ['id' => 'field2_id']);
    }

}

```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

2969d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6751413?v=4)[Alexander Zlakomanov](/maintainers/zlakomanoff)[@zlakomanoff](https://github.com/zlakomanoff)

---

Tags

yii2extension

### Embed Badge

![Health badge](/badges/zlakomanoff-yii2-related-entities/health.svg)

```
[![Health](https://phpackages.com/badges/zlakomanoff-yii2-related-entities/health.svg)](https://phpackages.com/packages/zlakomanoff-yii2-related-entities)
```

###  Alternatives

[vyants/yii2-daemon

Extension provides functionality for simple daemons creation and control

7760.4k](/packages/vyants-yii2-daemon)[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1455.6k](/packages/dmstr-yii2-cookie-consent)[imanilchaudhari/yii2-currency-converter

This extension will help to find out current currency conversion rate.

1911.7k](/packages/imanilchaudhari-yii2-currency-converter)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1359.3k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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