ssi-anik / amqp

php-amqplib wrapper that eases the consumption of RabbitMQ. A painless way of using RabbitMQ
https://packagist.org/packages/anik/amqp
MIT License
134 stars 23 forks source link

Is it possible to add multiple bindings to a queue? #30

Open abublihi opened 5 months ago

abublihi commented 5 months ago

hi @ssi-anik, thank you for the nice package,

I am wondering if it is possible to add multiple bindings to a queue usgin the package?

from rabbitMq it is possible to add additional bindings to a queue, but the package only allow to add one binding.

ssi-anik commented 5 months ago

Assalamu alaikum brother. Thanks for your kind words.

No, right now this package doesn't allow that feature.

It'll be helpful if you can manage to send a PR with testing. I would be happy to merge. Let me know if you want to work on it.

Thanks. <3

abublihi commented 5 months ago

وعليكم السلام ورحمة الله وبركاته

thank you brother for the quick response, yes i can work on it, but can you please give some hint where i can start from

ssi-anik commented 5 months ago

@abublihi Sorry brother for the late reply. You should look into the consumer/producer classes based on your requirements. I haven't used multiple bindings yet. So, can't exactly tell you.

Otherwise, I will look into it soon and hopefully will be done around the Eid days Insha-Allah. Currently, I am focusing on two other projects.