Download the PHP package romainrg/rabbitmq_client without Composer

On this page you can find all versions of the php package romainrg/rabbitmq_client. 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_client

rabbitmq_client (CodeIgniter)

CodeIgniter Library used to easilly interract with RabbitMQ 🐰❤

:books: Dependencies

:beginner: Installation

:arrow_right: Step 1 : Library installation by Composer

Just by running following command in the folder of your project :

Or by adding following lines to your composer.json file :

Don't forget to include your autoload to CI config file :

:arrow_right: Step 2 : Run a composer update in the directory of your project with the following command :

:arrow_right: Step 3 : Create the following config file

You have to create it in the CI config folder located in ./application/config/rabbitmq.php

:arrow_right: Step 4 : Load the library in your CI Core Controller file

(Or just in a CI Controller)

:arrow_right: Step 5 : Enjoy and give me some improvements or ideas ! ;)

Examples

:arrow_right: Pushing some datas in a Queue:

This will create, if it does not exist, the 'hello_queue' queue and insert 'Hello World !' text inside it.

If you want to run your CI Controller Method with CLI command :

You will have the following return

:arrow_right: Fetching some datas from a Queue (only in CLI at this time):

This will fetch last inserted datas from the 'hello_queue' in real time, with parmanent mode activated and '_process' callback function.

The PHP Code :

Run it in CLI :

:arrow_right: Pushing some datas in a Queue with additional parameters:

This will create, if it does not exist, the 'hello_queue' queue and insert 'Hello World !' text inside it, the third parameter TRUE set the durability of the 'hello_queue' (TRUE = permanent, FALSE = not permanent), the last parameter 'delivery_mode (2)' makes message persistent (you can also add some parameters to this array).

For more CodeIgniter libraries, give me a :beer::grin:

> Beer road

:lock: License

GNU General Public License v3.0


All versions of rabbitmq_client with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
codeigniter/framework Version ^3.1
php-amqplib/php-amqplib Version ^2.8.1
ext-sockets 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 romainrg/rabbitmq_client contains the following files

Loading the files please wait ....