Download the PHP package heismehrab/php-rabbitmq-x without Composer

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

php-rabbitMQ-x package


Total Downloads Latest Stable Version License License

This package basically designed to communicate with your Rabbitmq instance to consume/produce messages.

You must be familiar with basic titles of Rabbitmq to understand how this packages works and how it behaves with Rabbitmq processes.

We suggest that you visit the official website of Rabbitmq if you are not familiar with the whole Rabbitmq cycle, or you can visit example oriented samples of Rabbitmq if you already familiar with it.

Installation.

Before anything, developer has to know that package uses php >= 7.0 and ONLY features of Rabbitmq which supported by the package explains in below:

titles Features/Types version
Queues DLX, exchange-bindings 0.9.0, 1.0.0
Exchanges Fanout, direct, routing-keys 0.9.0, 1.0.0
QOS (Fair dispatching) prefetch-size, prefetch-count 0.9.0, 1.0.0


install via composer:

After installing the package, we need to have a configuration file which the both producer and consumer workers needs it to start the process.

This configuration file keeps the details of all Rabbitmq authentication, Queues, Exchanges, Dead letter exchanges, exchange and queue bindings and QOS tuning settings;

You can see and use the structure of original config file in below:


For more examples of the configuration file, you can check the original file which placed in package root directory.

How the package works?

When we get an instance of a Producer/Consumer and inject the configuration file into that, the service will start validate the file and then declare the queues, exchanges, etc... which explained in above table; finally we have a configured Rabbitmq instance which is ready to handle messages/tasks.

Examples.

some samples that describe how a Producer and Consumer works:

Producer:


Consumer:


To be sure that Producer service closes the connections to Rabbitmq after sending messages/tasks, you can call the closeConnections() method, this method is available in both Producer and Consumer instances; note the Consumer call this method by its own, so you don't need to do that in manual for Consumer services.

you can also take a look at here directory of package to see more example oriented samples.


All versions of php-rabbitmq-x with dependencies

PHP Build Version
Package Version
Requires php-amqplib/php-amqplib Version >=3.0
ext-json Version *
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 heismehrab/php-rabbitmq-x contains the following files

Loading the files please wait ....