Skip to content

technomagegithub/magento-amqp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Magento extension for sending messages through AMQP protocol (RabbitMQ, ActiveMQ, ...)

Requirements

  • AMQP PECL extension sudo pecl install amqp

Installation instructions

Install with modgit:

$ cd /path/to/magento
$ modgit init
$ modgit clone amqp https://github.com/jreinke/magento-amqp.git

or download package manually here and unzip in Magento root folder.

Finally:

  • Clear cache
  • Logout from admin then login again to access module configuration

Usage

<?php
// Sending data of a new customer to exchange 'amqp.topic' with routing key 'magento.customer.create'
$data = $customer->getData();
$broker = Mage::helper('amqp/broker');
$broker->send(json_encode($data), 'amq.topic', 'magento.customer.create');

About

Magento extension for sending messages through AMQP protocol (RabbitMQ, ActiveMQ, ...)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%