PHPackages                             kamz8/laravel-batch-orchestrator - 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. kamz8/laravel-batch-orchestrator

ActiveLibrary

kamz8/laravel-batch-orchestrator
================================

Dynamic chunking and batch orchestration for Laravel queued jobs.

v1.1.0(1mo ago)09MITPHPPHP ^8.2|^8.3|^8.4CI passing

Since Jul 7Pushed 1mo agoCompare

[ Source](https://github.com/kamz8/laravel-batch-orchestrator)[ Packagist](https://packagist.org/packages/kamz8/laravel-batch-orchestrator)[ RSS](/packages/kamz8-laravel-batch-orchestrator/feed)WikiDiscussions main Synced 1w ago

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

kamz8/laravel-batch-orchestrator
================================

[](#kamz8laravel-batch-orchestrator)

Dynamic chunking and orchestration of Laravel `Bus::batch()` for long-running jobs (reports, exports), with optional progress tracking in Redis.

Requirements
------------

[](#requirements)

- PHP `^8.2`, `^8.3`, or `^8.4`
- Laravel `^10.0`, `^11.0`, `^12.0`, or `^13.0` (`illuminate/bus`, `illuminate/support`)

See [`docs/COMPATIBILITY.md`](docs/COMPATIBILITY.md) for the full PHP × Laravel support matrix and known exceptions.

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

[](#installation)

```
composer require kamz8/laravel-batch-orchestrator
```

Requires a `job_batches` table and a queue connection that supports batching:

```
php artisan queue:batches-table
php artisan migrate
```

Publish the config if you need to change the progress TTL:

```
php artisan vendor:publish --tag=batch-orchestrator-config
```

Components
----------

[](#components)

- `Contracts\ChunkableTask` — the task contract: `getChunks()`, `getChunkJobClass()`, `queue()`, `onBatchFinished()`, `onBatchFailed()`.
- `Services\BaseOrchestrator` / `Services\BatchProcessOrchestrator` — dispatches the batch and calls the corresponding task method on completion/failure.
- `Concerns\HasBatchProgress` — trait for models that tracks percentage progress in Redis (chunks count toward 80%, the remainder is the merge stage).

> Full API description (parameters, edge-case behavior) lives in the PHPDoc in `src/`. See [`docs/AI_GUIDE.md`](docs/AI_GUIDE.md) for a deeper guide on wiring up a new `ChunkableTask`.

Lifecycle events
----------------

[](#lifecycle-events)

The package dispatches plain Laravel events (`Illuminate\Support\Facades\Event`) at key points of a batch's orchestration and its buffered-payload operations — `BatchOrchestrationStarted/Finished/Failed`, `BatchProgressUpdated`, and four `BufferedPayload*` events. It never broadcasts, queues, or registers listeners for them; that is entirely up to the consuming application (logging, custom domain broadcasts, UI updates, metrics). See [`docs/LIFECYCLE_EVENTS.md`](docs/LIFECYCLE_EVENTS.md) for the full emission order, an event table, and integration examples.

Testing
-------

[](#testing)

```
composer install
vendor/bin/phpunit
```

License
-------

[](#license)

Proprietary.

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance90

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity52

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

Total

2

Last Release

48d ago

PHP version history (2 changes)v1.0.0PHP ^8.2|^8.3

v1.1.0PHP ^8.2|^8.3|^8.4

### Community

Maintainers

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

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kamz8-laravel-batch-orchestrator/health.svg)

```
[![Health](https://phpackages.com/badges/kamz8-laravel-batch-orchestrator/health.svg)](https://phpackages.com/packages/kamz8-laravel-batch-orchestrator)
```

###  Alternatives

[spatie/laravel-medialibrary

Associate files with Eloquent models

6.2k47.7M734](/packages/spatie-laravel-medialibrary)[laravel/scout

Laravel Scout provides a driver based solution to searching your Eloquent models.

1.7k59.5M714](/packages/laravel-scout)[illuminate/events

The Illuminate Events package.

15058.9M2.4k](/packages/illuminate-events)[illuminate/broadcasting

The Illuminate Broadcasting package.

7227.7M254](/packages/illuminate-broadcasting)[illuminate/notifications

The Illuminate Notifications package.

513.2M1.3k](/packages/illuminate-notifications)[flarum/core

Delightfully simple forum software.

271.5M2.6k](/packages/flarum-core)

PHPackages © 2026

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