Skip to content

zobzn/batcher

Repository files navigation

zobzn/batcher

Build Status Software License

Perform batch operations

Installation

composer require zobzn/batcher

Basic Usage

require_once __DIR__ . '/vendor/autoload.php';

$batcher = new \Zobzn\Batcher(30, function (array $items) {
    var_export($items);
});

for ($i = 0; $i < 100; $i++) {
    $batcher->add($i);
}

$batcher->finish();

About

Performs batch operations

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages