Download the PHP package calcinai/php-amqplib-bridge without Composer
On this page you can find all versions of the php package calcinai/php-amqplib-bridge. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download calcinai/php-amqplib-bridge
More information about calcinai/php-amqplib-bridge
Files in calcinai/php-amqplib-bridge
Package php-amqplib-bridge
Short Description Bridge for videlalvaro/php-amqplib to expose classes compatible with PECL::AMQP
License MIT
Homepage https://github.com/calcinai/php-amqplib-bridge/
Informations about the package php-amqplib-bridge
php-amqplib-bridge
Bridge for videlalvaro/php-amqplib to expose classes compatible with PECL::AMQP
This library is a polyfill for the PECL::AMQP Extension, using php-amqplib. The PECL extension is much faster than the php implemention, from what I understand, this is due to PHP's . This library enables you to develop/deploy on systems regardless of whether the extension is available. If the native extension is available, it will transparently be used instead of this bridge.
As a bonus, this library will provide type hints/code completion to your IDE (for the PECL extension) if it supports it.
Setup with Composer
Usage
All classes, functions and exceptions should be equivelent to the native ones. Patches are welcome for any inconsistencies.
Examples
Unfortunately the documentation for the PECL extension is quite poor, but with a reasonable understanding of AMQP, you should be able to feel your way around. There are some usage examples on the (Polish?) man pages.
Thanks to @pdezwart for the method stubs, and the contributors to php-amqplib, which is largely what this library is based on.