PHPackages                             dmasior/querabilis - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Queues &amp; Workers](/categories/queues)
4. /
5. dmasior/querabilis

AbandonedArchivedLibrary[Queues &amp; Workers](/categories/queues)

dmasior/querabilis
==================

Simple PHP Queue

0.6(6y ago)1312MITPHPPHP ^7.2

Since Jun 2Pushed 5y agoCompare

[ Source](https://github.com/dmasior/querabilis)[ Packagist](https://packagist.org/packages/dmasior/querabilis)[ RSS](/packages/dmasior-querabilis/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (14)Versions (10)Used By (0)

Simple PHP Queue
----------------

[](#simple-php-queue)

#### Compliant with JAVA Queue interface

[](#compliant-with-java-queue-interface)

[![Build Status](https://camo.githubusercontent.com/53a27ce2b760ff9935fb7b71a664c0072dd94c969ca66336a32e6a76ca4ba81d/68747470733a2f2f7472617669732d63692e6f72672f696e6974782f717565726162696c69732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/initx/querabilis)[![Code Coverage](https://camo.githubusercontent.com/9ab91d9544b4b91a592a8cc1737faa9ec66a2599594daab6467e15492b6dd9e9/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f696e6974782f717565726162696c69732f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/initx/querabilis/?branch=master)

Installation
------------

[](#installation)

```
$ composer require initx/querabilis
```

Usage
-----

[](#usage)

#### Driver

[](#driver)

```
use Initx\Querabilis\Driver\FilesystemQueue;

$queue = new FilesystemQueue('./queue');
```

#### Push to queue

[](#push-to-queue)

```
use Initx\Querabilis\Envelope;

$envelope = new Envelope('Payload goes here');

$queue->add($envelope);
```

#### Pull form queue

[](#pull-form-queue)

```
$envelope = $queue->remove();

$envelope->getPayload(); // "Payload goes here"
```

### Currently supported drivers

[](#currently-supported-drivers)

- Amazon SQS
- Redis (Predis)
- AMQP
- Beanstalkd
- Filesystem
- In memory

Each driver implements Queue interface.

### Summary of Queue interface

[](#summary-of-queue-interface)

##### Insert

[](#insert)

- `add(e)` - inserts an element if possible, otherwise throwing exception
- `offer(e)` - inserts an element if possible, otherwise returning false

##### Remove

[](#remove)

- `remove()` - remove and return head of queue, otherwise throwing exception
- `poll()` - remove and return head of queue, otherwise returning null

##### Examine

[](#examine)

- `element()` - return but do not remove head of queue, otherwise throwing exception
- `peek()` - return but do not remove head of queue, otherwise returning null

### More examples

[](#more-examples)

##### Redis (Predis) driver

[](#redis-predis-driver)

```
use Predis\Client;
use Initx\Querabilis\Driver\RedisQueue;

$client = new Client(['host' => '127.0.0.1']);
$queue = new RedisQueue($client, 'queueName');
```

##### AWS SQS driver

[](#aws-sqs-driver)

```
use Aws\Sqs\SqsClient;
use Initx\Querabilis\Driver\SqsQueue;

$client = new SqsClient(your_sqs_client_config);
$queue = new SqsQueue($client, 'queueName');
```

##### In memory driver

[](#in-memory-driver)

```
use Initx\Querabilis\Driver\InMemoryQueue;

$queue = new InMemoryQueue();
```

##### Beanstalkd driver

[](#beanstalkd-driver)

```
use Pheanstalk\Pheanstalk;
use Initx\Querabilis\Driver\BeanstalkdQueue;

$client = Pheanstalk::create([your_beanstalkd_config]);
$queue = new BeanstalkdQueue($client);
```

##### AMQP driver

[](#amqp-driver)

```
use PhpAmqpLib\Connection\AMQPStreamConnection;
use Initx\Querabilis\Driver\AmqpQueue;

$connection = new AMQPStreamConnection([your_amqp_config]);
$queue = new AmqpQueue($connection, 'queueName', 'exchange');
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 98.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

9

Last Release

2530d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c4ab1830374345519193535f1ecd741f014fca18cd2f3b2bb19c2ecc14236acb?d=identicon)[dmasior](/maintainers/dmasior)

---

Top Contributors

[![dmasior](https://avatars.githubusercontent.com/u/8804838?v=4)](https://github.com/dmasior "dmasior (66 commits)")[![Zae](https://avatars.githubusercontent.com/u/96126?v=4)](https://github.com/Zae "Zae (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/dmasior-querabilis/health.svg)

```
[![Health](https://phpackages.com/badges/dmasior-querabilis/health.svg)](https://phpackages.com/packages/dmasior-querabilis)
```

###  Alternatives

[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[baldinof/roadrunner-bundle

A RoadRunner worker as a Symfony Bundle

3061.3M1](/packages/baldinof-roadrunner-bundle)[jolicode/castor

A lightweight and modern task runner. Automate everything. In PHP.

53541.0k3](/packages/jolicode-castor)[mmoreram/gearman-bundle

Adds gearman support to your and Symfony4, Symfony5 project

237395.2k2](/packages/mmoreram-gearman-bundle)[bref/symfony-messenger

Symfony Messenger bridge to run with SQS and SNS on AWS Lambda with Bref

721.2M6](/packages/bref-symfony-messenger)[bricev/jobqueue

JobQueue is a PHP component that queues `tasks` defining `jobs` which can be executed by asynchronous and/or distributed `workers`

362.4k](/packages/bricev-jobqueue)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
