Download the PHP package donatello-za/laravel-rabbitmq without Composer

On this page you can find all versions of the php package donatello-za/laravel-rabbitmq. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-rabbitmq

RabbitMQ Queue driver for Laravel/Lumen 5.4+

IMPORTANT

This is not a direct fork but is a clone of a package called kenokokoro/laravel-rabbitmq of a package that dissapeared from github. This repistory is an unsupported place-holder until a working alternative is implemented.

Description

Laravel/Lumen wrapper for RabbitMQ queue (queue - worker) and messaging ( pub - sub). This package uses separate configuration options for the Laravel\Lumen queue extension, and another implementation for Pub\Sub.

Installation

  1. Install this package via composer using:

    composer require kenokokoro/laravel-rabbitmq

  2. Add the Service Provider

    • For Laravel use the providers section in the config/app.php file V9\RabbitMQ\ServiceProvider::class,. Afterwards just publish the configuration using: php artisan vendor:publish --provider=V9\RabbitMQ\ServiceProvider --tag=config

    • For Lumen use $app->register(V9\RabbitMQ\ServiceProvider::class) in your bootstrap/app.php file. After that you will have to create new file in your config folder: config/messaging.php and put the sample content from the messaging-sample.php file found in: vendor/kenokokoro/laravel-rabbitmq/config/messaging-sample.php. Finally just include this configuration file inside your bootstrap/app.php file using: $app->configure('messaging')
  3. Even though the both implementations have different configuration, the connection configuration is same for both

    QUEUE_DRIVER=rabbitmq
    RABBITMQ_HOST=127.0.0.1
    RABBITMQ_PORT=5672
    RABBITMQ_VHOST=/
    RABBITMQ_LOGIN=guest
    RABBITMQ_PASSWORD=guest

    List of available environment values can be found in: vendor/kenokokoro/laravel-rabbitmq/config/queue.php

    NOTE: The environment configuration values are used only in the laravel queue extension. For the messaging (pub - sub) it is used different type of configuration

Usage

  1. Queue (Laravel official documentation)

    • On Laravel: Queue::push(App\Jobs\DummyJob::class)
    • On Lumen you can use the same if you have $app->withFacades() added in your boostrap/app.php file, or simply app('queue')->push(App\Jobs\SomeJob::class)
    • To consume either of this just simply use the Laravel\Lumen queue worker: php artisan queue:work
  2. Messaging

    The messaging is using different configuration for queue management (except for the rabbitmq connection). To get in touch for some examples of how the rabbitmq exchange and queue parameters are important check the RabbitMQ examples

    1. Using dependency injection

      Publishing example:

      Consuming the publisher example:

    2. The same can be achieved using app(V9\RabbitMQ\Messaging\Sub\ConsumeInterface::class) or app(V9\RabbitMQ\Messaging\Pub\PublishInterface:class)

License

The Laravel\Lumen RabbitMQ package is open-sourced software licensed under the MIT license.


All versions of laravel-rabbitmq with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
php-amqplib/php-amqplib Version 2.6.*
illuminate/contracts Version >=5.4
illuminate/support Version >=5.4
illuminate/queue Version >=5.4
illuminate/database Version >=5.4
illuminate/container Version >=5.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package donatello-za/laravel-rabbitmq contains the following files

Loading the files please wait ....