PHPackages                             unique/yii2-batch-model-saver - 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. [Framework](/categories/framework)
4. /
5. unique/yii2-batch-model-saver

ActiveLibrary[Framework](/categories/framework)

unique/yii2-batch-model-saver
=============================

Adds batch model saving functionality to yii2 framework.

014PHP

Since Dec 14Pushed 2y ago1 watchersCompare

[ Source](https://github.com/uniquexor/yii2-batch-model-saver)[ Packagist](https://packagist.org/packages/unique/yii2-batch-model-saver)[ RSS](/packages/unique-yii2-batch-model-saver/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-batch-model-saver
======================

[](#yii2-batch-model-saver)

Adds batch model saving functionality to yii2 framework.

Allows to easily do a batch insert for the models, which gives a huge speed boost, while still maintaining before, after event handling and validation.

Instalation
-----------

[](#instalation)

This component requires php &gt;= 7.4. To install it, you can use composer:

```
composer require unique/yii2-batch-model-saver "@dev"

```

Usage:
------

[](#usage)

`    $saver = new BatchModelSaver();$model = new Test();$model->data = '123';$saver->addToSaveList( $model );$model = new Test();$model->data = '321';$saver->addToSaveList( $model );$saver->commit();`You can even update models that are not new. However, saving updated models will not yield any speed benefits of batch saving and functionality is only provided for convenience.

###  Health Score

14

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity20

Early-stage or recently created project

 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/48786540?v=4)[Unique (Deutschland) GmbH](/maintainers/unique)[@unique](https://github.com/unique)

---

Top Contributors

[![uniquexor](https://avatars.githubusercontent.com/u/6176836?v=4)](https://github.com/uniquexor "uniquexor (9 commits)")

### Embed Badge

![Health badge](/badges/unique-yii2-batch-model-saver/health.svg)

```
[![Health](https://phpackages.com/badges/unique-yii2-batch-model-saver/health.svg)](https://phpackages.com/packages/unique-yii2-batch-model-saver)
```

###  Alternatives

[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k39.6M297](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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