2017 © Pedro Peláez
 

symfony-bundle batch-operation-bundle

Symfony Bundle to batch Operation

image

welp/batch-operation-bundle

Symfony Bundle to batch Operation

  • Monday, June 12, 2017
  • by Nightbr
  • Repository
  • 2 Watchers
  • 0 Stars
  • 69 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 1 % Grown

The README.md

WelpBatchBundle

Build Status GitHub license Documentation, (*1)

Symfony Bundle to manage batch operation. You can choose whatever broker you want (default is RabbitMq), (*2)

Features

  • [x] Support RabbitMq
    • [x] Automatically create producer
    • [x] Automatically create consumer
    • [x] Automatically create queue
    • [x] Support create/Delete Action
    • [x] Dispatch Event with the entity created/deleted
    • [ ] Support custom action
    • [ ] Exploit Batch Size
  • [x] Manage Batch, batch Status, Batch Event
  • [x] Rest Controller
  • [ ] Support Redis as a broker
  • [ ] Support other Broker
  • [ ] Delete Batch and operations from queue, and revert actions

Quickstart

Add the bundle to your project

composer require welp/batch-operation-bundle

Add Welp\BatchBundle\WelpBatchBundle to your AppKernel.php:, (*3)

$bundles = [
    // ...
    new Welp\BatchBundle\WelpBatchBundle(),
];

Extends the BatchModel

Create a entity which extends out Welp\BatchBundle\Model\BatchModel, (*4)

use Doctrine\ORM\Mapping as ORM;
use Welp\BatchBundle\Model\Batch as BaseBatch;

/**
 * @ORM\Entity()
 * @ORM\Table(name="batch")
 * @ORM\HasLifecycleCallbacks
 */
class Batch extends BaseBatch{
    ...
}

Minimal Configuration

welp_batch:
    entity_manager: doctrine.orm.entity_manager
    batch_entity:
        batch: MyBundle\Entity\Batch

Full Documentation

you can find the full documentation at https://welpdev.github.io/batchoperation-bundle/, (*5)

The Versions