# php-amqplib/php-amqplib

The most widely used PHP client for RabbitMQ

Repository: https://github.com/php-amqplib/php-amqplib
Canonical: https://ross.abutalabs.com/products/php-amqplib
Homepage: http://www.rabbitmq.com/getstarted.html
Language: PHP
License: LGPL-2.1
License Family: copyleft
Topics: php, amqp, rabbitmq, messaging, php-amqplib, hacktoberfest
Last push: 2026-01-06T07:52:20+00:00

## Health v2 (maintenance only)
Score: 64/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 61, release rhythm 46, longevity 100
- inputs: {"age_days": 5405, "days_push": 239, "days_rel": 283, "gap_med": 89, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4602, forks 1024 (observed 2026-08-28T04:08:54.875299+00:00)

## What it is
php-amqplib is a pure PHP implementation of the AMQP 0-9-1 protocol client, primarily used to communicate with RabbitMQ message brokers. It is the most widely used PHP RabbitMQ client and supports RabbitMQ extensions such as publisher confirms and exchange-to-exchange bindings.

## Use cases
- publish and consume messages from RabbitMQ in PHP
- implement work queues and competing consumers in PHP
- build publish/subscribe messaging in a PHP application
- set up topic-based routing between PHP services
- implement request/reply RPC over a message broker
- connect a PHP app to RabbitMQ without a C extension

## When to choose
- your PHP application needs to talk to RabbitMQ over AMQP 0-9-1
- you want a pure PHP client with no native extension dependencies
- you need RabbitMQ-specific features like publisher confirms or basic nack
- you are following the official RabbitMQ PHP tutorials

## When to avoid
- you need AMQP 1.0 rather than 0-9-1
- you use a different message broker that does not speak AMQP 0-9-1
- you need maximum throughput and prefer a native extension like ext-amqp
- your project is not written in PHP

## Facets
- artifact type: library
- maturity: active
- function: message-queue, rpc, sdk
- domain: backend, developer-tools, microservices
- platform: php, cross-platform
- tags: amqp, rabbitmq, php, message-broker, queueing, composer, messaging

## Member repositories
- php-amqplib/php-amqplib (main) score 64

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:54.875299+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:19:46.557527+00:00, confidence not recorded.
  - readme: https://github.com/php-amqplib/php-amqplib (fetched 2026-08-28T04:08:54.875299+00:00, sha c85eedf26ec2)
  - homepage: http://www.rabbitmq.com/getstarted.html (fetched 2026-08-29T09:04:53.529002+00:00, sha 197cb516de26)
  - site_page: https://www.rabbitmq.com/docs (fetched 2026-08-29T09:04:53.532856+00:00, sha 838d8ad52ab6)
  - site_page: https://www.rabbitmq.com/commercial-features (fetched 2026-08-29T09:04:53.534691+00:00, sha 239ac9f5b4da)
  - site_page: https://www.rabbitmq.com/docs/next (fetched 2026-08-29T09:04:53.536579+00:00, sha 4ae363a8ba3f)
  - site_page: https://www.rabbitmq.com/docs/4.2 (fetched 2026-08-29T09:04:53.538329+00:00, sha a2107b1b31b1)
  - site_page: https://www.rabbitmq.com/docs/4.1 (fetched 2026-08-29T09:04:53.539870+00:00, sha 4246b45d2e02)
  - site_page: https://www.rabbitmq.com/docs/4.0 (fetched 2026-08-29T09:04:53.541389+00:00, sha 744f8b437b70)
  - site_page: https://www.rabbitmq.com/docs/3.13 (fetched 2026-08-29T09:04:53.542953+00:00, sha 2acfb506b4fe)
  - site_page: https://www.rabbitmq.com/docs/download (fetched 2026-08-29T09:04:53.544657+00:00, sha 980abfe22bc7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
