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 1mo ago

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 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity19

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://www.gravatar.com/avatar/2a798acb845b9c8ab35c7853f5a6bfd5e3b2b0578faea86e873fa269ea997371?d=identicon)[unique](/maintainers/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/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M190](/packages/laravel-telescope)[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M528](/packages/laravel-passport)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

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

1.9k36.7M255](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M591](/packages/laravel-prompts)

PHPackages © 2026

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