PHPackages                             neam/yii-relations-ui - 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. neam/yii-relations-ui

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

neam/yii-relations-ui
=====================

To simplify editing relations in a Yii 1 app

1193PHP

Since Apr 29Pushed 10y agoCompare

[ Source](https://github.com/neam/yii-relations-ui)[ Packagist](https://packagist.org/packages/neam/yii-relations-ui)[ RSS](/packages/neam-yii-relations-ui/feed)WikiDiscussions develop Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Yii Relations UI
================

[](#yii-relations-ui)

To simplify editing relations in a Yii 1 app.

Current widget
--------------

[](#current-widget)

### Has-many relation input based on Handsontable.

[](#has-many-relation-input-based-on-handsontable)

Use in a Yii 1 app as follows:

```
$this->widget('\neam\yii_relations_ui\widgets\HasManyHandsontableInput', [
    'model' => $model,
    'relation' => 'routes',
]);
```

Use any customized columns and [handsontable settings](https://github.com/handsontable/jquery-handsontable/wiki):

```
$this->widget('\neam\yii_relations_ui\widgets\HasManyHandsontableInput', [
    'model' => $model,
    'relation' => 'routes',
    'settings' => [
        'columns' => [
            (object) ['data' => 'id'],
            (object) ['data' => 'route'],
            (object) ['data' => 'canonical', 'type' => 'checkbox', 'checkedTemplate' => 1, 'uncheckedTemplate' => 0], // example of using checkbox to save an attribute of type BOOLEAN NOT NULL
            (object) ['data' => 'route_type_id'],
            (object) ['data' => 'node_id'],
            (object) ['special' => 'delete_checkbox'], // special virtual column to mark which items should be deleted
        ]
    ]
]);
```

Note: This widget requires Yii &lt;- Yii 2 bridge available at

#### Screenshot 1 - A hasMany relation "routes" displayed in handsontable

[](#screenshot-1---a-hasmany-relation-routes-displayed-in-handsontable)

!\[Handsontable Screenshot 1\](/docs/screenshots/handsontable-screen-1.jpg?raw=true "A hasMany relation "routes" displayed in handsontable")

#### Screenshot 2 - A new route being added

[](#screenshot-2---a-new-route-being-added)

[![Handsontable Screenshot 2](/docs/screenshots/handsontable-screen-2.jpg?raw=true "A new route being added")](/docs/screenshots/handsontable-screen-2.jpg?raw=true)

#### Screenshot 3 - The new route after saving

[](#screenshot-3---the-new-route-after-saving)

[![Handsontable Screenshot 3](/docs/screenshots/handsontable-screen-3.jpg?raw=true "The new route after saving")](/docs/screenshots/handsontable-screen-3.jpg?raw=true)

###  Health Score

22

—

LowBetter than 25% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

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/d71e1dd8ef0c10991227f77fbc40e68504121455a0ec42e3ae7d05630f47605c?d=identicon)[motin](/maintainers/motin)

---

Top Contributors

[![motin](https://avatars.githubusercontent.com/u/793037?v=4)](https://github.com/motin "motin (11 commits)")

### Embed Badge

![Health badge](/badges/neam-yii-relations-ui/health.svg)

```
[![Health](https://phpackages.com/badges/neam-yii-relations-ui/health.svg)](https://phpackages.com/packages/neam-yii-relations-ui)
```

PHPackages © 2026

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