PHPackages                             dutchakdev/yii-batch - 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. dutchakdev/yii-batch

ActiveLibrary

dutchakdev/yii-batch
====================

217PHP

Since Jul 24Pushed 11y ago1 watchersCompare

[ Source](https://github.com/dutchakdev/yii-batch)[ Packagist](https://packagist.org/packages/dutchakdev/yii-batch)[ RSS](/packages/dutchakdev-yii-batch/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

yii-batch
=========

[](#yii-batch)

Same "batch" of yii2, but Simplified. Just for fun

Batch is helper-iterator for yii created for batch processing.

yii-batch / protected / components / Batch.php

```
// Usage batch:
$criteria = new \CDbCriteria();
$criteria->limit = 1000;

// Get 100 records per object
foreach((new \Batch(100, Models\Heisenberg::model()->with('Jesse'))->findAll($criteria) as $meth){
  // 100 objects in $meth, 10 query to db
}

```

```
// Usage each:
$criteria = new \CDbCriteria();
$criteria->limit = 1000;

// Get 100 records per object
foreach((new \Batch(100, Models\Heisenberg::model()->with('Jesse'), true)->findAll($criteria) as $meth){
  // 1 object in $meth, 10 query to db
}

```

### Instalation

[](#instalation)

#### From composer:

[](#from-composer)

Add to your composer.json

```
"require": {
	...
	"dutchakdev/yii-batch": "@dev"
}
```

Run command

```
$ composer update
```

#### From git/zip:

[](#from-gitzip)

```
$ git clone git@github.com:dutchakdev/yii-batch.git ./path_to_exstensions/
```

Add to yor config

```
'import'=>array(
	...
    'path_to_vendor.dutchakdev.yii-batch.Batch'
),
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

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

---

Top Contributors

[![dutchakdev](https://avatars.githubusercontent.com/u/1294321?v=4)](https://github.com/dutchakdev "dutchakdev (19 commits)")

### Embed Badge

![Health badge](/badges/dutchakdev-yii-batch/health.svg)

```
[![Health](https://phpackages.com/badges/dutchakdev-yii-batch/health.svg)](https://phpackages.com/packages/dutchakdev-yii-batch)
```

PHPackages © 2026

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