Download the PHP package phpdot/rabbitmq without Composer

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

phpdot/rabbitmq

RabbitMQ messaging for PHP: publish, consume, retry, dead letter.

Install

Quick Start


Architecture


Publishing

Auto-set properties:

Property Default
message_id UUIDv7
timestamp time()
app_id gethostname()
content_type Auto-detected (JSON or text)
delivery_mode 2 (persistent)

Consuming

Three return values. No ambiguity:

Unhandled exceptions are caught and dead-lettered automatically. The consumer never crashes.


Retry & Dead Letter

Retry Flow

Enable in config:

Retry infrastructure (exchange, TTL queue, bindings) is created automatically on first use.

Dead Letter

When max retries exceeded or TaskStatus::DEAD returned, the message is forwarded to the dead letter exchange with:

Replay

After fixing a bug, replay dead-lettered messages back to their original queue. Same callback pattern as consuming — return an enum, the library handles the rest.

Three actions per message:

Uses basic_get (pull mode) — processes available messages and stops. No infinite loop.


Compression


Trace Propagation

Pass trace context as plain string headers. No coupling to any tracing library.


Configuration


RabbitMQConnection Resilience

Auto-reconnect with exponential backoff:


Message API


CLI Commands

When installed in a phpdot app (with phpdot/console), these commands auto-discover and become available under your CLI entry point:

rabbitmq:status

Connection check + topology drift detection — confirms the broker is up, credentials work, and every exchange/queue defined in config/rabbitmq.php is actually declared.

rabbitmq:queues

Queue depths and consumer counts — basic observability without opening the management UI. Supports --filter=substring and --watch (refresh every second).

rabbitmq:topology:declare

Applies the exchanges/queues/bindings from config/rabbitmq.php to the broker. Idempotent — existing matching resources are skipped. Supports --dry-run (preview) and --force (drop+recreate mismatched queues, DESTRUCTIVE — confirms before dropping unless --no-interaction).

rabbitmq:peek <queue> [--limit=5]

Inspects messages in a queue without consuming them. Each peeked message is returned to the queue via basic_reject with requeue.

rabbitmq:replay <queue> [--limit=10] [--dry-run]

Wraps the Replayer class — requeues dead-letter messages back to their original exchange. --dry-run previews what would replay without acking.

rabbitmq:dlq:analyze <queue> [--limit=500]

Samples a dead-letter queue and groups messages by death reason and original routing-key — one-screen incident triage.


Package Structure


Development

License

MIT


All versions of rabbitmq with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
php-amqplib/php-amqplib Version ^3.0
phpdot/contracts Version ^1.4
psr/log Version ^3.0
symfony/console Version ^8.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 phpdot/rabbitmq contains the following files

Loading the files please wait ...