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

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

pavle/yii-batch-result
======================

yii's batch result extension

v1.0.2(10y ago)117PHP

Since Dec 30Pushed 10y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (4)Used By (0)

\#Yii1.x 数据分批获取扩展 1.简介： 查询大量的数据库中的数据时，建议您尽可能使用批处理查询，尽量减少您的内存使用情况。

2.安装方式：

```
composer require pavle/yii-batch-result
```

3.使用方式：

```
public function behaviors()
{
    return array(
        array(
            'class' => '\pavle\batch\behaviors\BatchResultBehavior',
            'batchSize' => 20
        ),
    );
}
```

在需要使用批处理的地方

```
foreach(Product::model()->batch($condition, $params, $batchSize) as $products){
    //products是一个batchSize数量的数据集
}

foreach(Product::model()->each($condition, $params, $batchSize) as $product){
    //product是一个数据对象
}
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity65

Established project with proven stability

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 ~0 days

Total

3

Last Release

3785d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/eca8d58fc93deff22b5152606099bdcef7a0d3da0bf3a8a8d585c58dfede9bde?d=identicon)[Pavle Lee](/maintainers/Pavle%20Lee)

### Embed Badge

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

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

###  Alternatives

[colinmollenhour/modman

Module Manager

72176.3k3](/packages/colinmollenhour-modman)[doublesecretagency/craft-cpjs

Add custom JavaScript to your Control Panel.

43163.7k](/packages/doublesecretagency-craft-cpjs)[laravel-admin-ext/summernote

Summernote extension for laravel-admin

37140.5k](/packages/laravel-admin-ext-summernote)[xttribute/xttribute

XML to DTO, nicely!

6329.1k](/packages/xttribute-xttribute)[nuhel/filament-cropper

Cropper Js Implementation for Filament

3658.7k](/packages/nuhel-filament-cropper)[halilcosdu/laravel-replicate

Replicate Laravel PHP client

548.1k](/packages/halilcosdu-laravel-replicate)

PHPackages © 2026

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