Skip to content

Documentation

Robin Harvey edited this page Sep 28, 2011 · 47 revisions

AMQPHP User Documentation

Introduction

AMQPHP is an Amqp implementation written in pure PHP (the clue's in the name!). AMQPHP is written using namespaces (PHP 5.3+) and features an Phing/XSLT based code generation system. Using code generation means that AMQPHP can more easily keep up with changes in the Amqp 0.9.1 protocol, for example exchange to exchange bindings in RabbitMQ can be supported without re-writing any PHP code. AMQPHP can be used to write both Amqp producers and consumers, and can use SSL, with client certificates and peer-verification.

Getting Started.

Amqphp must be built using the standard PHP build tool - Phing. If you don't want to use Phing, download one of the tagged releases from Github, these always include pre-built sources. There are 2 varieties of build - CPF i.e. Class Per File, and NSPF i.e. Namespace per file. Use the former if you need to autoload classes, use the latter if you don't.

User Manual

This manual covers all aspects of using the Amqphp API, but it does not cover and broker architecture, configuration or any other general Amqp topics. There are many places on the web which cover this material, I'd recommend the RabbitMQ concepts tutorial as a good place to start.

  1. Amqp concepts
  2. API Overview
  3. Sending messages
  4. A simple message reader
  5. Consuming messages
  6. RabbitMQ extensions
  7. Persistent connections
Clone this wiki locally