Download the PHP package kontoulis/rabbitmq-laravel without Composer

On this page you can find all versions of the php package kontoulis/rabbitmq-laravel. 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 rabbitmq-laravel

RabbitMQLaravel

Latest Stable Version Latest Unstable Version License

Installation

Via Composer

Add the Service Provider to config/app.php

Add the RabbitMQ facade to config/app.php

Publish the configuration file and edit it if needed in config/rabbitmq-laravel.php

Usage

The default routing key can be set in config file, or env("APP_NAME")."_queue") will be used. Also most methods take argument $routingKey which can override the default.

If you don't set an exchange the default '' exchange will be used. If you set one, make sure the bindings are set in RabbitMQ system. if you are not familiar with exchanges you will probably do not need to set that.

You can use the RabbitMQ facade to do anything as seen in https://github.com/php-amqplib/php-amqplib/blob/master/PhpAmqpLib/Channel/AMQPChannel.php . Basically, the RabbitMQ facade uses the Broker class which is an extension of AMQPChannel.

In order to consume the queue, you could either use the AmqpChannel through the Facade, or use a better to manage approach with QueueHandlers. A QueueHandler should extend the Kontoulis\RabbitMQLaravel\Handlers\Handler class and the built-in ListenToQueue method accepts an array of handlers to process the queue message. If more than one handler exists in array, there are some Handler return values that will use the follow up QueueHandlers in cases of failure of the previous. There is also a Kontoulis\RabbitMQLaravel\Handlers\Handler\DefaultHandler class as example and/or debug handler.

In order to Listen to the Queue you have to pass an array of Handlers to the method

License

The MIT License (MIT). Please see LICENCE.md for more information.


All versions of rabbitmq-laravel with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version ~5.1
php-amqplib/php-amqplib Version 2.6.*
php Version >=5.3.0
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 kontoulis/rabbitmq-laravel contains the following files

Loading the files please wait ....