资 源 简 介
php-amqp is a PHP Extension written in C to enable support for AMQP (Advanced Message Queuing Protocol) messaging directly from PHP. The extension is using the rabbitmq library (Version 1.6.0, AMQP Version 0.8) (http://hg.rabbitmq.com/rabbitmq-c).
Installation
Download librabbitmq-c from from http://hg.rabbitmq.com/rabbitmq-c/ and extract its contents.
Download librabbitmq-codegen from http://hg.rabbitmq.com/rabbitmq-codegen/ and extract its contents to a subdirectory in librabbitmq-c named "codegen"
or if you have mercurial installed:
hg clone http://hg.rabbitmq.com/rabbitmq-ccd rabbitmq-chg clone http://hg.rabbitmq.com/rabbitmq-codegen codegen
Compile and install librabbitmq using:
autoreconf -i && ./configure && make && sudo make install
Download and unpack the PHP extension, compile and install it using:
phpize && ./configure --with-amqp && make