PHPackages                             lemric/batch-processing - 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. [Queues &amp; Workers](/categories/queues)
4. /
5. lemric/batch-processing

ActiveLibrary[Queues &amp; Workers](/categories/queues)

lemric/batch-processing
=======================

Batch Processing

v1.0.2(1mo ago)1134↓11.8%proprietaryPHPPHP &gt;=8.4CI passing

Since Apr 27Pushed 1mo agoCompare

[ Source](https://github.com/Lemric/BatchProcessing)[ Packagist](https://packagist.org/packages/lemric/batch-processing)[ RSS](/packages/lemric-batch-processing/feed)WikiDiscussions master Synced 1w ago

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

Lemric BatchProcessing
======================

[](#lemric-batchprocessing)

 *Enterprise-grade batch processing for PHP 8.4+.*

 [![PHP](https://camo.githubusercontent.com/3734886505a7e8629e8d71ce5adcaa8d2c26f9499d56a427ab6b14efbaca53ff/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d254532253839254135382e342d373737424234)](https://www.php.net/) [![License](https://camo.githubusercontent.com/8cdcedb495adcb22b924d08ecd8bbb68ccb206609299e19e591cfe91ed99d004/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4475616c2532304c6963656e73652d626c7565)](LICENSE) [![Issues](https://camo.githubusercontent.com/e16fec9a21d2138103b22135a8011ed65455ae68ba798ed9396a3ec5bcdb39bc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6973737565732d4769744875622d313831373137)](https://github.com/Lemric/BatchProcessing/issues)

---

Lemric BatchProcessing is a framework-agnostic library for building robust, restartable, observable batch jobs in PHP. Compliance with PSR standards and the idiomatic PHP style.

Why Lemric BatchProcessing?
---------------------------

[](#why-lemric-batchprocessing)

- **Production-ready** — atomic per-chunk transactions, full restart semantics, durable metadata.
- **Framework-agnostic** — works standalone, with optional bridges for Symfony 6.4/7+ and Laravel 11+/12+.
- **Standards-first** — PSR-3 logger, PSR-6/16 cache, PSR-11 container, PSR-14 events.
- **Modern PHP** — readonly classes, enums, attributes, typed properties, strict types.

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

[](#installation)

```
composer require lemric/batch-processing
```

Requires **PHP 8.4** or higher.

Quick Example
-------------

[](#quick-example)

```
use Lemric\BatchProcessing\BatchProcessing;
use Lemric\BatchProcessing\Domain\JobParameters;
use Lemric\BatchProcessing\Item\Reader\IteratorItemReader;
use Lemric\BatchProcessing\Testing\InMemoryItemWriter;

$env    = BatchProcessing::inMemoryEnvironment();
$reader = new IteratorItemReader(range(1, 1000));
$writer = new InMemoryItemWriter();

$step = $env->stepBuilderFactory->get('demoStep')
    ->chunk(100, $reader, null, $writer)
    ->build();

$job = $env->jobBuilderFactory->get('demoJob')->start($step)->build();

$execution = $env->launcher->run($job, JobParameters::of(['run.id' => 1]));

echo $execution->getStatus()->value; // COMPLETED
```

Documentation
-------------

[](#documentation)

Full documentation lives in the [`docs/`](docs/index.md) directory:

- **[Getting Started](docs/index.md)** — installation, quick start, architecture.
- **[Core Concepts](docs/index.md#core-concepts)** — domain model, jobs, steps, chunks.
- **[Reading &amp; Writing](docs/index.md#reading--writing)** — readers, processors, writers.
- **[Error Handling](docs/index.md#error-handling)** — retry, skip, exceptions.
- **[Infrastructure](docs/index.md#infrastructure)** — repository, transactions, events.
- **[Advanced](docs/index.md#advanced)** — partitioning, flow jobs, scopes, restart.
- **[Framework Integration](docs/index.md#framework-integration)** — Symfony &amp; Laravel.
- **[Reference](docs/index.md#reference)** — configuration, PSR, testing, performance.

Development
-----------

[](#development)

Clone the repository and install dependencies:

```
git clone https://github.com/Lemric/BatchProcessing.git
cd BatchProcessing
composer install
```

Run the test suite:

```
composer test
```

Run static analysis and code style fixes:

```
composer stan
```

Support
-------

[](#support)

- **Issues**: [GitHub Issues](https://github.com/Lemric/BatchProcessing/issues)
- **Security**: [Security Policy](https://github.com/Lemric/BatchProcessing/security)
- **Discussions**: [GitHub Discussions](https://github.com/Lemric/BatchProcessing/discussions)

License
-------

[](#license)

This project is developed by Lemric and is available under a **dual licensing model**:

Use caseAllowedCostOpen Source project✅FreePersonal non-commercial use✅FreeCommercial / SaaS / enterprise❌Paid license requiredClosed-source project❌Paid license requiredFor commercial licensing inquiries, contact: ****

See the [LICENSE](LICENSE) file for full terms.

Authors
-------

[](#authors)

- **Dominik Labudzinski** —  — [labudzinski.com](https://labudzinski.com)
- **Lemric** — [lemric.com](https://lemric.com)

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance91

Actively maintained with recent releases

Popularity16

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

Total

2

Last Release

43d ago

### Community

Maintainers

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

---

Top Contributors

[![labudzinski](https://avatars.githubusercontent.com/u/1152480?v=4)](https://github.com/labudzinski "labudzinski (13 commits)")

---

Tags

jobbatchchunkenterpriseetl

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/lemric-batch-processing/health.svg)

```
[![Health](https://phpackages.com/badges/lemric-batch-processing/health.svg)](https://phpackages.com/packages/lemric-batch-processing)
```

###  Alternatives

[symfony/symfony

The Symfony PHP framework

31.4k86.9M2.2k](/packages/symfony-symfony)[laravel/framework

The Laravel Framework.

34.7k532.1M19.2k](/packages/laravel-framework)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k11](/packages/tempest-framework)[cakephp/cakephp

The CakePHP framework

8.8k19.1M1.7k](/packages/cakephp-cakephp)[symfony/cache

Provides extended PSR-6, PSR-16 (and tags) implementations

4.2k365.0M3.1k](/packages/symfony-cache)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M506](/packages/shopware-core)

PHPackages © 2026

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