PHP implementation of https://github.com/smrchy/rsmq.
- php7
- php-redis extension
The recommended way to install this library is through Composer:
$ composer require michsindelar/PhpRSMQ "^1.0.0"
<?php
require_once __DIR__.'/vendor/autoload.php';
use PhpRSMQ\RedisSMQFacade;
$rsmq = new RedisSMQFacade('127.0.0.1', 6379);
$rsmq->sendMessage('myQueue', 'Hello world!');
To execute the test suite, you'll need Composer:
$ composer test
- implement message receiving
Feel free to make a PR after consultation. Please follow these rules and standards when you write your code:
- SOLID
- KISS (Keep it simple, Stupid!)
- DRY (Don't Repeat Yourself)
- design patterns
- write documentation
- fluent interface
- write unit tests
- Law of Demeter