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

Since Nov 13Pushed 11mo 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 1mo 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

34

—

LowBetter than 77% of packages

Maintenance52

Moderate activity, may be stable

Popularity11

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

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

[cybercog/laravel-love

Make Laravel Eloquent models reactable with any type of emotions in a minutes!

1.2k302.7k1](/packages/cybercog-laravel-love)[cviebrock/eloquent-taggable

Easy ability to tag your Eloquent models in Laravel.

567694.8k3](/packages/cviebrock-eloquent-taggable)[clickbar/laravel-magellan

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

423715.4k1](/packages/clickbar-laravel-magellan)[genealabs/laravel-pivot-events

This package introduces new eloquent events for sync(), attach(), detach() or updateExistingPivot() methods on BelongsToMany relation.

1404.9M8](/packages/genealabs-laravel-pivot-events)[reedware/laravel-relation-joins

Adds the ability to join on a relationship by name.

2121.2M13](/packages/reedware-laravel-relation-joins)[aglipanci/laravel-eloquent-case

Adds CASE statement support to Laravel Query Builder.

115157.2k](/packages/aglipanci-laravel-eloquent-case)

PHPackages © 2026

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