Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wyrihaximus/php-psr-3-bunny
Log messages to a RabbitMQ queue/exchange
https://github.com/wyrihaximus/php-psr-3-bunny
bunny hacktoberfest php php7 psr-3 rabbitmq reactphp
Last synced: 22 days ago
JSON representation
Log messages to a RabbitMQ queue/exchange
- Host: GitHub
- URL: https://github.com/wyrihaximus/php-psr-3-bunny
- Owner: WyriHaximus
- License: mit
- Created: 2018-03-24T21:57:39.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-03T08:31:23.000Z (about 1 year ago)
- Last Synced: 2024-11-14T20:48:58.318Z (about 2 months ago)
- Topics: bunny, hacktoberfest, php, php7, psr-3, rabbitmq, reactphp
- Language: PHP
- Size: 43.9 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# [Bunny](https://github.com/jakubkulhan/bunny) ([RabbitMQ](https://www.rabbitmq.com)) [PSR-3](http://www.php-fig.org/psr/psr-3/) logger
[![Linux Build Status](https://travis-ci.org/WyriHaximus/php-psr-3-bunny.png)](https://travis-ci.org/WyriHaximus/php-psr-3-bunny)
[![Latest Stable Version](https://poser.pugx.org/WyriHaximus/psr-3-bunny/v/stable.png)](https://packagist.org/packages/WyriHaximus/psr-3-bunny)
[![Total Downloads](https://poser.pugx.org/WyriHaximus/psr-3-bunny/downloads.png)](https://packagist.org/packages/WyriHaximus/psr-3-bunny/stats)
[![Code Coverage](https://scrutinizer-ci.com/g/WyriHaximus/php-psr-3-bunny/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/WyriHaximus/php-psr-3-bunny/?branch=master)
[![License](https://poser.pugx.org/WyriHaximus/psr-3-bunny/license.png)](https://packagist.org/packages/wyrihaximus/psr-3-bunny)
[![PHP 7 ready](http://php7ready.timesplinter.ch/WyriHaximus/php-psr-3-bunny/badge.svg)](https://travis-ci.org/WyriHaximus/php-psr-3-bunny)### Installation ###
To install via [Composer](http://getcomposer.org/), use the command below, it will automatically detect the latest version and bind it with `^`.
```
composer require wyrihaximus/psr-3-bunny
```## Usage ##
```php
$bunny = new Client([/** configuration */]);
$bunny->connect();
$channel = $bunny->channel();
$logger = new ChannelLogger(
$channel, // Channel to communicate over
[], // Headers
'exchange', // Exchange
'queue' // Queue
false, // Mandatory
false // Immediate
);
```## Contributing ##
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
## License ##
Copyright 2018 [Cees-Jan Kiewiet](https://www.wyrihaximus.net/)
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.