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(9mo ago)178MITPHPPHP ^7.4|^8.0

Since Nov 13Pushed 9mo 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 today

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

Maintenance57

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

284d 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

[rtconner/laravel-likeable

Trait for Laravel Eloquent models to allow easy implementation of a 'like' or 'favorite' or 'remember' feature.

402385.8k5](/packages/rtconner-laravel-likeable)[kkszymanowski/laravel-6-firebird

A Firebird database package for Laravel 6

3019.7k](/packages/kkszymanowski-laravel-6-firebird)[phaza/single-table-inheritance

Single Table Inheritance Trait

1515.8k](/packages/phaza-single-table-inheritance)

PHPackages © 2026

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