Giter VIP home page Giter VIP logo

batchmanager's Introduction

BatchManager

Build Status Code Coverage Scrutinizer Code Quality

Introduction

The BatchManager is an attempt to port the Drupal Batch API 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] (https://www.drupal.org/node/180528). 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

Main setup

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

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

Post installation

  1. Enable BatchManager in your application.config.phpfile.

    <?php
    return array(
        'modules' => array(
            // ...
            'BatchManager',
        ),
        // ...
    );
  2. To be able to use the assets under /batch-manager/public you can either install the module AssetManager or copy the files to your public directory.

Creating the table

You must create the required table in order to use the default BatchManager\Mapper\DbBatchMapper. You may use the schema located in data/batch.sql.

>mysql database < data/batch.sql

batchmanager's People

Contributors

neoglez avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.