Download the PHP package almatar/rabbitmq without Composer
On this page you can find all versions of the php package almatar/rabbitmq. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download almatar/rabbitmq
More information about almatar/rabbitmq
Files in almatar/rabbitmq
Package rabbitmq
Short Description [DEPRECATED] Integrates php-amqplib with Laravel & Lumen. Use vladimir-yuldashev/laravel-queue-rabbitmq instead.
License MIT
Informations about the package rabbitmq
almatar/rabbitmq - 📦 ARCHIVED
📦 ARCHIVED REPOSITORY
This repository has been archived and is now read-only. No further updates, bug fixes, or support will be provided.⚠️ This package is deprecated and no longer maintained.
We recommend using vladimir-yuldashev/laravel-queue-rabbitmq as a modern, actively maintained alternative.
A rabbitmq adapter for Lumen PHP framework
Requirements
- PHP >= 7.2
- php-amqplib/php-amqplib >= 2.7
- Laravel >= 6.0
Install
Run the following command to install the package:
Configure
Create the config file
create config/rabbitmq.php where you can define rabbitmq connections, producers, and consumers.
Example of config/rabbitmq.php
in case of Lumen load the configuration file manually bootstrap/app.php.
Register the Service Provider for Lumen
Add the following line to bootstrap/app.php:
Use
Example of consumer
Example of producer
Contributing
Please note the following guidelines before submitting pull requests:
- Use the PSR-2 coding style
License
See LICENSE.
Migration to vladimir-yuldashev/laravel-queue-rabbitmq
Why Migrate?
The recommended package offers several advantages:
- Laravel Queue Integration: Seamless integration with Laravel's built-in queue system
- Active Maintenance: Regularly updated with bug fixes and new features
- Better Documentation: Comprehensive documentation and examples
- Modern PHP Support: Supports modern PHP versions and Laravel releases
- Queue Jobs: Native support for Laravel job classes
- Better Error Handling: Improved error handling and retry mechanisms
- Testing Support: Built-in testing capabilities
Migration Steps
1. Install the New Package
2. Update Configuration
Replace your config/rabbitmq.php with the new queue configuration in config/queue.php:
3. Convert Your Code
Old Producer Code:
New Laravel Job:
Old Consumer Code:
New Laravel Queue Worker:
4. Remove Old Package
Need Help?
Roadmap
Support publishing to queues directlySupport HTTPS connectionSupport transactionsSupport batchingAdd unit testingAdding default logger and can be customized
Note: This package is deprecated. Please migrate to vladimir-yuldashev/laravel-queue-rabbitmq.