PHPackages                             tigrov/yii2-array-field - 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. tigrov/yii2-array-field

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

tigrov/yii2-array-field
=======================

ArrayField - Yii2 extension to edit array field in forms generated by ActiveForm.

1.0.2(6y ago)2941MITPHP

Since Jul 25Pushed 6y agoCompare

[ Source](https://github.com/Tigrov/yii2-array-field)[ Packagist](https://packagist.org/packages/tigrov/yii2-array-field)[ RSS](/packages/tigrov-yii2-array-field/feed)WikiDiscussions master Synced 2mo ago

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

ArrayField
==========

[](#arrayfield)

The extension build a form field for array attribute of a model.

If you have array attributes in a model you can edit them using the extension.

[![drawing](array-field.gif)](array-field.gif)

[![Latest Stable Version](https://camo.githubusercontent.com/734f94a03ec033f2d8112228c6e6b43a5499527fd9213f599f8b5637669a7eba/68747470733a2f2f706f7365722e707567782e6f72672f546967726f762f796969322d61727261792d6669656c642f762f737461626c65)](https://packagist.org/packages/Tigrov/yii2-array-field)

It requires to use `Bootstrap` library.

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist tigrov/yii2-array-field

```

or add

```
"tigrov/yii2-array-field": "~1.0"

```

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

Usage
-----

[](#usage)

Specify class `ArrayField` for a form field.

```

    ...

    ...

```

`$model->phones` must be an array.

---

Also it is possible to show it as input group.

```

    ...

    ...

```

The result with "input group".

[![drawing](input-group.png)](input-group.png)

License
-------

[](#license)

[MIT](LICENSE)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~20 days

Total

3

Last Release

2440d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/77d285672dec831b7ce5746ab8bb1dd20fffe81fb9d11c232534686706de9697?d=identicon)[Tigros](/maintainers/Tigros)

---

Top Contributors

[![Tigrov](https://avatars.githubusercontent.com/u/8563175?v=4)](https://github.com/Tigrov "Tigrov (6 commits)")

---

Tags

arrayfieldattribute

### Embed Badge

![Health badge](/badges/tigrov-yii2-array-field/health.svg)

```
[![Health](https://phpackages.com/badges/tigrov-yii2-array-field/health.svg)](https://phpackages.com/packages/tigrov-yii2-array-field)
```

###  Alternatives

[doctrine/collections

PHP Doctrine Collections library that adds additional functionality on top of PHP arrays.

6.0k411.1M1.2k](/packages/doctrine-collections)[symfony/property-access

Provides functions to read and write from/to an object or array using a simple string notation

2.8k295.3M2.5k](/packages/symfony-property-access)[nette/utils

🛠 Nette Utils: lightweight utilities for string &amp; array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.

2.1k394.3M1.5k](/packages/nette-utils)[league/config

Define configuration arrays with strict schemas and access values with dot notation

564302.2M24](/packages/league-config)[cuyz/valinor

Dependency free PHP library that helps to map any input into a strongly-typed structure.

1.5k9.2M108](/packages/cuyz-valinor)[openlss/lib-array2xml

Array2XML conversion library credit to lalit.org

31052.5M47](/packages/openlss-lib-array2xml)

PHPackages © 2026

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