michsindelar/phprsmq

PHP implementation of the Redis Simple Message Queue.

Installs: 2 192

Dependents: 0

Suggesters: 0

Security: 0

Stars: 13

Watchers: 1

Forks: 5

Open Issues: 1

pkg:composer/michsindelar/phprsmq

1.0.1 2021-04-15 08:49 UTC

This package is not auto-updated.

Last update: 2025-10-10 05:42:44 UTC


README

RSMQ: Redis Simple Message Queue for PHP

PHP Redis Simple Message Queue

PHP implementation of https://github.com/smrchy/rsmq.

System Requirements

  • php7
  • php-redis extension

Installation

The recommended way to install this library is through Composer:

$ composer require michsindelar/PhpRSMQ "^1.0.0"

Basic usage

<?php

require_once __DIR__.'/vendor/autoload.php';

use PhpRSMQ\RedisSMQFacade;

$rsmq = new RedisSMQFacade('127.0.0.1', 6379);
$rsmq->sendMessage('myQueue', 'Hello world!');

Tests

To execute the test suite, you'll need Composer:

$ composer test

TODO

  • implement message receiving

Contributing

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