Permalink
Browse files

Improves README

  • Loading branch information...
1 parent 2135216 commit 914247cc97896bd0074d4888e123abad43647d5b @videlalvaro videlalvaro committed May 16, 2011
Showing with 24 additions and 2 deletions.
  1. +24 −2 README.md
View
@@ -1,15 +1,37 @@
# NOTE #
-This library is a fork of the [php-amqplib](http://code.google.com/p/php-amqplib/) library.
+This library is a fork of the [php-amqplib](http://code.google.com/p/php-amqplib/) library.
We modified that library in order to work with PHP 5.3 Strict.
-Also we improved the debug method to increase performance.
+Also we improved the debug method to increase performance.
We use it daily in prod for sending/consuming 600K + messages per day.
Below is the original README file content. Credits goes to the original authors.
+## Usage ##
+
+Start your RabbitMQ server, then get the source:
+
+ $ git clone git://github.com/tnc/php-amqplib.git
+
+Open two Terminals and on the first one execute the following commands to start the consumer:
+
+ $ cd php-amqplib/demo
+ $ php amqp_consumer.php
+
+Then on the other Terminal do:
+
+ $ cd php-amqplib/demo
+ $ php amqp_publisher.php some text to publish
+
+You should see the message arriving to the process on the other Terminal
+
+Then to stop the consumer, send to it the `quit` message:
+
+ $ php amqp_publisher.php quit
+
# Original README: #
PHP library implementing Advanced Message Queuing Protocol (AMQP).

0 comments on commit 914247c

Please sign in to comment.