PHPackages                             robotusers/cakephp-chunk - 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. robotusers/cakephp-chunk

ActiveCakephp-plugin[Utility &amp; Helpers](/categories/utility)

robotusers/cakephp-chunk
========================

Robotusers CakePHP Chunk plugin

0.3.0(1y ago)88.0k↓41.3%3MITPHP

Since Jun 12Pushed 1y ago1 watchersCompare

[ Source](https://github.com/robotusers/cakephp-chunk)[ Packagist](https://packagist.org/packages/robotusers/cakephp-chunk)[ Docs](https://github.com/robotusers/cakephp-chunk)[ RSS](/packages/robotusers-cakephp-chunk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (5)Versions (9)Used By (0)

CakePHP Chunk plugin
====================

[](#cakephp-chunk-plugin)

[![Software License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](LICENSE)[![Build Status](https://camo.githubusercontent.com/08e3a2a4d7b2846c132318f6b8e0f0c887b39087312d4754c87946dc6325a1fa/68747470733a2f2f7472617669732d63692e6f72672f726f626f7475736572732f63616b657068702d6368756e6b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/robotusers/cakephp-chunk)[![codecov](https://camo.githubusercontent.com/cc28d8deaa68b168ead1ff3c9662d407b59cd0936b14691004a7005aad9a0d89/68747470733a2f2f636f6465636f762e696f2f67682f726f626f7475736572732f63616b657068702d6368756e6b2f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/robotusers/cakephp-chunk)

This plugin allows to chunk results retrieved from a database in order to save memory.

Installation
------------

[](#installation)

```
composer require robotusers/cakephp-chunk
bin/cake plugin load Robotusers/Chunk

```

Using the plugin
----------------

[](#using-the-plugin)

The plugin provides a custom `ResultSet` class which accepts `Cake\ORM\Query` instance.

Example:

```
$query = $table->find();
$results = new \Robotusers\Chunk\ORM\ResultSet($query);

foreach ($results as $result) {
    // do stuff
}
```

You can control how many elements are in one "chunk" (1000 by default):

```
$query = $table->find();
$results = new \Robotusers\Chunk\ORM\ResultSet($query, ['size' => 100]);
```

The plugin provides also a behavior with `chunk()` method:

```
$table->addBehavior('Robotusers/Chunk.Chunk');
$query = $table->find();
$results = $table->chunk($query, ['size' => 100]);
```

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.8% 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.

###  Release Activity

Cadence

Every ~456 days

Recently: every ~685 days

Total

7

Last Release

523d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8ea7e55d797f61a7a0448f1b88cfd5b855e9644c7909af356a82896587926197?d=identicon)[robertpustulka](/maintainers/robertpustulka)

---

Top Contributors

[![robertpustulka](https://avatars.githubusercontent.com/u/7437773?v=4)](https://github.com/robertpustulka "robertpustulka (23 commits)")[![ravage84](https://avatars.githubusercontent.com/u/625761?v=4)](https://github.com/ravage84 "ravage84 (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/robotusers-cakephp-chunk/health.svg)

```
[![Health](https://phpackages.com/badges/robotusers-cakephp-chunk/health.svg)](https://phpackages.com/packages/robotusers-cakephp-chunk)
```

###  Alternatives

[chillerlan/php-qrcode

A QR Code generator and reader with a user-friendly API. PHP 8.4+

2.4k28.9M208](/packages/chillerlan-php-qrcode)[infection/extension-installer

Infection Extension Installer

2624.2M16](/packages/infection-extension-installer)[brussens/yii2-maintenance-mode

Maintenance mode component for Yii framework 2.x.x version.

78256.3k5](/packages/brussens-yii2-maintenance-mode)[muffin/orderly

Default ordering (behavior) for CakePHP

22217.3k1](/packages/muffin-orderly)[robotusers/cakephp-excel

Robotusers CakePHP Excel plugin

2312.1k](/packages/robotusers-cakephp-excel)[extpoint/yii2-megamenu

Configurable site map with auto generate page title, breadcrumbs and navigation

3310.9k](/packages/extpoint-yii2-megamenu)

PHPackages © 2026

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