Skip to content

ozzzi/opencart-rabbitmq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

RabbitMQ library for Opencart

Install php-amqplib

composer require php-amqplib/php-amqplib

Composer path

Composer_vendor/Opencart_dir/system/library

Add RabbitMQ config to opencart config.php

define('RABBITMQ_HOST', 'host');
define('RABBITMQ_PORT', '5672');
define('RABBITMQ_USER', 'login');
define('RABBITMQ_PASS', 'password');

Usage

Producer

$this->load->library('queue');
$this->queue->addTask('queueName', ['some' => 'data']);

Worker

cli/worker.php

About

RabbitMQ library for Opencart

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages