PHPackages                             udokmeci/yii2-closest-relation-trait - 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. udokmeci/yii2-closest-relation-trait

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

udokmeci/yii2-closest-relation-trait
====================================

This trait adds capability to fetch nearest related model class without need of redefininf relations on extensions.

1257

Since Apr 13Compare

[ Source](https://github.com/udokmeci/yii2-closest-relation-trait)[ Packagist](https://packagist.org/packages/udokmeci/yii2-closest-relation-trait)[ RSS](/packages/udokmeci-yii2-closest-relation-trait/feed)WikiDiscussions Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

### README not available

The README for this package hasn't been synced yet. View it on [GitHub](https://github.com/udokmeci/yii2-closest-relation-trait).

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community6

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://www.gravatar.com/avatar/0e3981825089fe62692543821e219d206b9f8f77ff4493f66234ebbd35958ab9?d=identicon)[udokmeci](/maintainers/udokmeci)

---

Top Contributors

[![udokmeci](https://avatars.githubusercontent.com/u/8896298?v=4)](https://github.com/udokmeci "udokmeci (13 commits)")

### Embed Badge

![Health badge](/badges/udokmeci-yii2-closest-relation-trait/health.svg)

```
[![Health](https://phpackages.com/badges/udokmeci-yii2-closest-relation-trait/health.svg)](https://phpackages.com/packages/udokmeci-yii2-closest-relation-trait)
```

###  Alternatives

[optimistdigital/nova-simple-repeatable

A Laravel Nova simple repeatable rows field.

74151.2k](/packages/optimistdigital-nova-simple-repeatable)[icecave/chrono

A date &amp; time library that is decoupled from the system clock.

54188.9k7](/packages/icecave-chrono)[malukenho/speaknumber

Transcreve números para extenso.

2957.9k](/packages/malukenho-speaknumber)

PHPackages © 2026

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