|
1 | 1 | # php-amqplib #
|
2 | 2 |
|
3 |
| -[](http://travis-ci.org/videlalvaro/php-amqplib) |
| 3 | +[![Latest Version on Packagist][ico-version]][link-packagist] |
| 4 | +[![Software License][ico-license]](LICENSE) |
| 5 | +[![Build Status][ico-travis]][link-travis] |
| 6 | +[![Coverage Status][ico-scrutinizer]][link-scrutinizer] |
| 7 | +[![Quality Score][ico-code-quality]][link-code-quality] |
| 8 | +[![Total Downloads][ico-downloads]][link-downloads] |
4 | 9 |
|
5 | 10 | This library is a _pure PHP_ implementation of the AMQP protocol. It's been tested against [RabbitMQ](http://www.rabbitmq.com/).
|
6 | 11 |
|
@@ -86,6 +91,10 @@ If you need to listen to the sockets used to connect to RabbitMQ then see the ex
|
86 | 91 | $ php amqp_consumer_non_blocking.php
|
87 | 92 | ```
|
88 | 93 |
|
| 94 | +## Change log |
| 95 | + |
| 96 | +Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently. |
| 97 | + |
89 | 98 | ## Tutorials ##
|
90 | 99 |
|
91 | 100 | To not repeat ourselves, if you want to learn more about this library,
|
@@ -144,11 +153,11 @@ $ch->basic_publish($msg, $exchange);
|
144 | 153 | AMQP imposes no limit on the size of messages; if a very large message is received by a consumer, PHP's memory limit may be reached
|
145 | 154 | within the library before the callback passed to `basic_consume` is called.
|
146 | 155 |
|
147 |
| -To avoid this, you can call the method `setBodySizeLimit(int $bytes)` on your Channel object. Body sizes exceeding this will be truncated, |
| 156 | +To avoid this, you can call the method `setBodySizeLimit(int $bytes)` on your Channel object. Body sizes exceeding this will be truncated, |
148 | 157 | and delivered to your callback with a `$msg->is_truncated` flag set. The property `$msg->body_size` will reflect the true body size of
|
149 | 158 | a received message, which will be higher than `strlen($msg->body)` if the message has been truncated.
|
150 | 159 |
|
151 |
| -Note that all data above the limit is read from the AMQP Channel and immediately discarded, so there is no way to retrieve it within your |
| 160 | +Note that all data above the limit is read from the AMQP Channel and immediately discarded, so there is no way to retrieve it within your |
152 | 161 | callback. If you have another consumer which can handle messages with larger payloads, you can use `basic_reject` or `basic_nack` to tell
|
153 | 162 | the server (which still has a complete copy) to forward it to a Dead Letter Exchange.
|
154 | 163 |
|
@@ -232,6 +241,10 @@ Once your environment is set up you can run your tests like this:
|
232 | 241 | $ make test
|
233 | 242 | ```
|
234 | 243 |
|
| 244 | +## Contributing |
| 245 | + |
| 246 | +Please see [CONTRIBUTING](CONTRIBUTING.md) for details. |
| 247 | + |
235 | 248 | ## Using AMQP 0.8 ##
|
236 | 249 |
|
237 | 250 | If you still want to use the old version of the protocol then you can do it by settings the following constant in your configuration code:
|
@@ -268,3 +281,18 @@ For bug reports, please use bug tracking system at the project page.
|
268 | 281 | Patches are very welcome!
|
269 | 282 |
|
270 | 283 | Author: Vadim Zaliva <[email protected]>
|
| 284 | + |
| 285 | +[ico-version]: https://img.shields.io/packagist/v/videlalvaro/php-amqplib.svg?style=flat-square |
| 286 | +[ico-license]: https://img.shields.io/badge/license-LGPL-brightgreen.svg?style=flat-square |
| 287 | +[ico-travis]: https://img.shields.io/travis/videlalvaro/php-amqplib/master.svg?style=flat-square |
| 288 | +[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/videlalvaro/php-amqplib.svg?style=flat-square |
| 289 | +[ico-code-quality]: https://img.shields.io/scrutinizer/g/videlalvaro/php-amqplib.svg?style=flat-square |
| 290 | +[ico-downloads]: https://img.shields.io/packagist/dt/videlalvaro/php-amqplib.svg?style=flat-square |
| 291 | + |
| 292 | +[link-packagist]: https://packagist.org/packages/videlalvaro/php-amqplib |
| 293 | +[link-travis]: https://travis-ci.org/videlalvaro/php-amqplib |
| 294 | +[link-scrutinizer]: https://scrutinizer-ci.com/g/videlalvaro/php-amqplib/code-structure |
| 295 | +[link-code-quality]: https://scrutinizer-ci.com/g/videlalvaro/php-amqplib |
| 296 | +[link-downloads]: https://packagist.org/packages/videlalvaro/php-amqplib |
| 297 | +[link-author]: https://github.com/videlalvaro |
| 298 | +[link-contributors]: ../../contributors |
0 commit comments