Download the PHP package skolodyazhnyy/butter-amqplib without Composer
On this page you can find all versions of the php package skolodyazhnyy/butter-amqplib. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download skolodyazhnyy/butter-amqplib
More information about skolodyazhnyy/butter-amqplib
Files in skolodyazhnyy/butter-amqplib
Package butter-amqplib
Short Description Butter AMQP library for PHP, written purely in PHP
License MIT
Homepage https://github.com/skolodyazhnyy/butter-amqplib
Informations about the package butter-amqplib
Butter AMQP
Butter AMQP is a client library for AMQP protocol purely implemented in PHP. It has no dependencies on any PHP extension nor other PHP packages. It's very light-weight and lightning fast.
Butter AMQP supports all base AMQP features and RabbitMQ extensions, including: exchange to exchange bindings, publisher acknowledgments, negative acknowledgements and others.
Key features
- Pure PHP implementation of AMQP protocol: no special requirements for PHP and easy upgrade using just composer
- Easy to use functional API, it hides implementation details and reduce risk of making mistake
- Code generator for frame encoding and decoding helps achieve high performance and low memory usage
- Clean design makes it pleasure to work with AMQP, easy to tests and understand
- Full support for AMQP protocol version 0.9.1 and RabbitMQ extensions
Installation
Easiest way to start using Butter AMQP library is to install it using composer. It has almost no dependencies and does not conflict with any other library.
Open a command console, enter your project directory and execute the following command to download the latest version of this library.
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Usage
If you are new to AMQP, I suggest you have a look into RabbitMQ tutorial which explains all features of AMQP protocol in only 6 chapters tutorial! I have adopted it with code samples for Butter AMQP.
Every code snippet below extends previous one.
Connecting to the server
Establish connection to the server and open a channel.
Read more
Define topology
Declare exchanges and queues.
Read more
Publishing messages
Publish a message to newly declared exchange and it will be delivered to the queue.
Read more
Consuming messages
Receive your message and acknowledge its delivery.
Read more
Close connection
Properly closing connection to the server will guarantee all temporary queues will be deleted and resources released.
You don't need to close channels, just connection will be enough.
Known issues
- [ ] Decimal type is not supported
- [ ] Unsigned long long type is not supported