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

ActiveYii2-extension

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

relatedentities

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

Since May 16Pushed 7y 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 2mo 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 27% 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

2918d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8898ae2a77448e992c63069cd2b5fb901d31a03cdaa0acee8f5ae9d4674d883c?d=identicon)[zlakomanoff](/maintainers/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

[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13825.6k47](/packages/skeeks-cms)[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

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

PHPackages © 2026

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