Skip to content

Simple AMQP implementation for symfony {works with lshaf/yii2-simple-amqp}

Notifications You must be signed in to change notification settings

lshaf/symfony-simple-amqp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Symfony Simple AMQP

I make this based on my needs Only work for symfony 3.2

Instalation

add new lshaf\amqp\AMQPBundle() to AppKernel.php

Configuration

lshaf_amqp:
    connection:
        host: 127.0.0.1
        user: guest
        password: guest
        vhost: /
        port: 5672
    options:
        queueName: up_to_you
        autoDelete: false
        passive: false
        durable: true
        exclusive: false
        nowait: false
        meta:
            x-limit-priority: 10
            ...
        # config below being used by amqp:process
        namespace: AppBundle\Jobs
        exchanes:
            master:
                - product
                - data

Run process

Run bin/console amqp:process
It will queue automatically and exchanges you've set on config

Test

Run bin/console amqp:listen
It will print anything you've sent to listener

About

Simple AMQP implementation for symfony {works with lshaf/yii2-simple-amqp}

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages