An open API service indexing awesome lists of open source software.

https://github.com/gianarb/lean-queue

Lean queue system in PHP.. Send, receive message and it supports different adapters.. only one thing
https://github.com/gianarb/lean-queue

Last synced: 4 months ago
JSON representation

Lean queue system in PHP.. Send, receive message and it supports different adapters.. only one thing

Awesome Lists containing this project

README

          

# LeanQueue
Master:
[![Build Status](https://travis-ci.org/gianarb/lean-queue.svg?branch=master)](https://travis-ci.org/gianarb/lean-queue)
Develop:
[![Build Status](https://travis-ci.org/gianarb/lean-queue.svg?branch=develop)](https://travis-ci.org/gianarb/lean-queue)

[![Dependency Status](https://www.versioneye.com/user/projects/54f36da64f3108d1fa0008da/badge.svg?style=flat)](https://www.versioneye.com/user/projects/54f36da64f3108d1fa0008da) [![Code Climate](https://codeclimate.com/github/gianarb/lean-queue/badges/gpa.svg)](https://codeclimate.com/github/gianarb/lean-queue)

lean queue system, receive and send messages for different queue adapters.

For now supports `ArrayAdapter` and `AwsSqs`

## Send messages in queue

```php
setAdapter(new \GianArb\LeanQueue\Adapter\AwsAdapter($client));

$queue->send("{'example': '2121'}");
```

## Receive and Delete messages

```php
setAdapter(new \GianArb\LeanQueue\Adapter\AwsAdapter($client));

list($receipt, $message) = $queue->receive();

$queue->delete($receipt);
```

## Install

```bash
php composer.phar require "gianarb\lean-queue"
```

## Contribute
Try it and open issues or pull requests! ;)

```shell
vendor/bin/phpspec run
```