PHPackages                             ofilin/yii2-fillmodel - 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. ofilin/yii2-fillmodel

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

ofilin/yii2-fillmodel
=====================

Fill model from last saved model use Session

0.1.0(6y ago)00MITPHP

Since Jul 15Pushed 6y agoCompare

[ Source](https://github.com/ofilin/yii2-fillmodel)[ Packagist](https://packagist.org/packages/ofilin/yii2-fillmodel)[ RSS](/packages/ofilin-yii2-fillmodel/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

yii2-fillmodel
==============

[](#yii2-fillmodel)

Automatic fill new model attributes with last saved model.

Last attributes stored in session

### Installation

[](#installation)

Add the package to your `composer.json`:

```
{
    "require": {
        "ofilin/yii2-fillmodel": "^0.1"
    }
}

```

and run `composer update` or alternatively run `composer require ofilin/yii2-fillmodel:^0.1`

### Usage

[](#usage)

In action create, add `Fill::model($model, ['attribute_1', 'attribute_2', 'attribute_3'])`;

```
public function actionCreate()
{
    $model = new Posts();

    // Add this line:
    \ofilin\fillmodel\Fill::model($model, ['groups', 'scheduled_date', 'scheduled_time']);

    if ($model->load(Yii::$app->request->post()) && $model->save()) {
        return $this->redirect(['index']);
    }
    return $this->render('create', [
        'model' => $model,
    ]);
}

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity48

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

2493d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fe14c539a2333ff16464444d436cd27bd1aa0b5a93acee1ce34319a216eecb63?d=identicon)[ofilin](/maintainers/ofilin)

---

Tags

yii2

### Embed Badge

![Health badge](/badges/ofilin-yii2-fillmodel/health.svg)

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

###  Alternatives

[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)
