PHPackages                             neoglez/batch-manager - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. neoglez/batch-manager

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

neoglez/batch-manager
=====================

The BatchManager is an attempt to port the Drupal Batch API to the Zend Framework 2 event-driven, service-oriented arquitecture.

1.0.0(10y ago)39521GPL-2.0+PHPPHP &gt;=5.3.3

Since Sep 18Pushed 7y ago1 watchersCompare

[ Source](https://github.com/neoglez/BatchManager)[ Packagist](https://packagist.org/packages/neoglez/batch-manager)[ RSS](/packages/neoglez-batch-manager/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)Dependencies (19)Versions (2)Used By (0)

BatchManager
============

[](#batchmanager)

[![Build Status](https://camo.githubusercontent.com/8857165be3b0b8d1c53bfac3c83693e043741543aaae502ce76cf1e62d38ba98/68747470733a2f2f7472617669732d63692e6f72672f6e656f676c657a2f42617463684d616e616765722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/neoglez/BatchManager) [![Code Coverage](https://camo.githubusercontent.com/a3a8d54e88f7cf9a40c568cb8c0deb970ab0f261277a9df0eff5297d30d21890/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e656f676c657a2f42617463684d616e616765722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/neoglez/BatchManager/?branch=master) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/0be77ba119301743b72d2409c4bd765fc42c301b1b8486ab8a93c5e89d386a7d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e656f676c657a2f42617463684d616e616765722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/neoglez/BatchManager/?branch=master)

Introduction
------------

[](#introduction)

The BatchManager is an attempt to port the [Drupal Batch API](https://www.drupal.org/node/180528) to the Zend Framework 3 event-driven, service-oriented arquitecture. The batch manager can be used to simulate or even implement asynchronous processing. It also tries to solve (in a rather naive way) the problem of scalability in a PHP environment where you usually have to increase the maximum execution time to accomplish a task depending on the size of some input. The Drupal Batch API is a very simple but powerful idea for a lot of practical use cases. If you are not familiar with it \[go and give it a try\] (). So why then write this module? Well, Drupal Batch API depends on Drupal, which is a framework but also a CMS, so in my opinion it isn’t flexible enough; I also think that Drupal’s hook-philosophy reassemble that of an event driven, but with some limitations so this module aims to decouple the functionality while using the comprehensive ZF2 EventManager component.

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

[](#installation)

### Main setup

[](#main-setup)

#### With composer

[](#with-composer)

1. Load neoglez/batch-manager in your composer.json file.

    ```
    "require": {
        "neoglez/batch-manager": "dev-master"
    }
    ```
2. Update composer

```
$ php composer.phar update
```

#### By cloning project

[](#by-cloning-project)

If you do not want to use composer, clone this project (either as a git submodule or not) into ./vendor/ directory.

### Post installation

[](#post-installation)

1. Enable BatchManager in your `application.config.php`file.

    ```
