Download the PHP package innmind/amqp without Composer

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

AMQP

Build Status codecov Type Coverage

This is an AMQP client implementing the version 0.9 of the protocol.

The goal of this implementation is to provide a PHP land implementation (for ease of use and readability) with a clear separation between the AMQP Model, transport layer and user API.

Note: This implementation couldn't have been done without php-amqplib that helped a lot to figure out the details of the transport layer.

Important: If you are using RabbitMQ be aware that it doesn't implemented the specification completely, Qos and Recover methods are not implemented. And if you find yourself using Value implementations note that ShortString, SignedLongLongInteger and SignedShortInteger generate server errors on some methods (like using them as message headers).

Documentation

Important: you must use vimeo/psalm to make sure you use this library correctly.

Installation

Usage

The above example will declare an exchange named crawler and queue parser that will receive messages from our exchange. Finally it will publish a message with the payload http://github.com/ to crawler (and the server will route it to parser).

And to consume the messages you have 2 approaches:

reject() and requeue() can also be used in the get callback.

Feel free to look at the Command namespace to explore all capabilities.

Benchmarks

make benchmark run on a MacBookPro18,2 (M1 Max, 32Gb RAM) with a RabbitMQ running in a container (via docker for mac) produces this result:

By comparison, the php-amqplib produces this result:

So it appears pure functions come at a cost!

Note: both benchmarks use manual acknowledgement of messages


All versions of amqp with dependencies

PHP Build Version
Package Version
Requires php Version ~8.2
innmind/immutable Version ~5.7
innmind/time-continuum Version ~3.1
innmind/math Version ~6.0
innmind/url Version ~4.1
ramsey/uuid Version ~4.0
innmind/operating-system Version ~5.0
innmind/media-type Version ~2.0
innmind/filesystem Version ~7.0
innmind/stream Version ~4.0
innmind/io Version ~2.6
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 innmind/amqp contains the following files

Loading the files please wait ....