PHPackages                             do6po/laravel-cursor-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. [Database &amp; ORM](/categories/database)
4. /
5. do6po/laravel-cursor-chunk

ActiveLibrary[Database &amp; ORM](/categories/database)

do6po/laravel-cursor-chunk
==========================

An easy way to get chunked data from database by cursor functional.

1.0.1(1y ago)1151MITPHPPHP ^7.4|^8.0

Since Nov 13Pushed 1y ago1 watchersCompare

[ Source](https://github.com/do6po/cursor-chunk-for-laravel)[ Packagist](https://packagist.org/packages/do6po/laravel-cursor-chunk)[ RSS](/packages/do6po-laravel-cursor-chunk/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (2)Dependencies (7)Versions (4)Used By (0)

An easy way to get chunked data from database by cursor functional.

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

[](#installation)

The package can be installed via composer:

```
composer require do6po/laravel-cursor-chunk
```

If you are using Laravel version &lt;= 5.4 or [the package discovery](https://laravel.com/docs/5.5/packages#package-discovery)is disabled, add the following providers in `config/app.php`:

```
'providers' => [
    Do6po\LaravelCursorChunk\Providers\CursorChunkServiceProvider::class,
]
```

Using
-----

[](#using)

```
    $builder = User::query();
    //... some code with builder
    foreach ($builder->cursorChunk() as $users) {
        //some action with $users
    }
```

```
    use Illuminate\Database\Eloquent\Collection;

    $builder = User::query();
    //... some code with builder
    $action = fn(Collection $users, User $user) => $users->put($user->getKey(), $user);
    foreach ($builder->cursorChunk(1000, $action) as $users) {
        //some action with $users, chunked by 1000 models and key by id
    }
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance48

Moderate activity, may be stable

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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.

###  Release Activity

Cadence

Every ~1304 days

Total

2

Last Release

382d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e0dc350cb1e393225c60235fbcd1e18085a85d2331008672fce0541920330b42?d=identicon)[do6po](/maintainers/do6po)

---

Top Contributors

[![do6po](https://avatars.githubusercontent.com/u/23662926?v=4)](https://github.com/do6po "do6po (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/do6po-laravel-cursor-chunk/health.svg)

```
[![Health](https://phpackages.com/badges/do6po-laravel-cursor-chunk/health.svg)](https://phpackages.com/packages/do6po-laravel-cursor-chunk)
```

###  Alternatives

[kirschbaum-development/eloquent-power-joins

The Laravel magic applied to joins.

1.6k29.9M42](/packages/kirschbaum-development-eloquent-power-joins)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8723.1M23](/packages/yajra-laravel-oci8)[glushkovds/phpclickhouse-laravel

Adapter of the most popular library https://github.com/smi2/phpClickHouse to Laravel

2051.4M2](/packages/glushkovds-phpclickhouse-laravel)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

438834.4k1](/packages/clickbar-laravel-magellan)[laravel-liberu/laravel-gedcom

A package that converts gedcom files to Eloquent models

782.5k1](/packages/laravel-liberu-laravel-gedcom)

PHPackages © 2026

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