PHPackages                             vtvz/yii2-extrelations - 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. [Database &amp; ORM](/categories/database)
4. /
5. vtvz/yii2-extrelations

ActiveYii2-extension[Database &amp; ORM](/categories/database)

vtvz/yii2-extrelations
======================

Support extended ActiveRecord relations

016PHP

Since May 12Pushed 10y ago1 watchersCompare

[ Source](https://github.com/vtvz/yii2-extrelations)[ Packagist](https://packagist.org/packages/vtvz/yii2-extrelations)[ RSS](/packages/vtvz-yii2-extrelations/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 Relations Extension
========================

[](#yii2-relations-extension)

Расширение, которое позволяет легко создавать связи между различными ActiveRecord моделями.

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist vtvz/yii2-relations

```

or add

```
"vtvz/yii2-relations": "*"
```

to the require section of your composer.json.

Usage
-----

[](#usage)

Класс vtvz\\relations\\Relations является поведением.

Поведение поддерживает все виды связей и позволяет удобно их настраивать.

Пример:

```

```

Примечание
----------

[](#примечание)

Расширение находится на стадии ранней разработки. Нужна помощь в покрытии расширения тестами и создании нормальной документации.

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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://avatars.githubusercontent.com/u/11929252?v=4)[Vitaly Zaslavsky](/maintainers/vtvz)[@vtvz](https://github.com/vtvz)

---

Top Contributors

[![vtvz](https://avatars.githubusercontent.com/u/11929252?v=4)](https://github.com/vtvz "vtvz (7 commits)")

### Embed Badge

![Health badge](/badges/vtvz-yii2-extrelations/health.svg)

```
[![Health](https://phpackages.com/badges/vtvz-yii2-extrelations/health.svg)](https://phpackages.com/packages/vtvz-yii2-extrelations)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k116.5M113](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[pgvector/pgvector

pgvector support for PHP

198628.3k10](/packages/pgvector-pgvector)

PHPackages © 2026

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