PHPackages                             vbpupil/queue - 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. vbpupil/queue

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

vbpupil/queue
=============

A simple Queue data structure.

2.0.0(3y ago)0402MITPHP

Since Jun 19Pushed 3y ago1 watchersCompare

[ Source](https://github.com/vbpupil/queue)[ Packagist](https://packagist.org/packages/vbpupil/queue)[ RSS](/packages/vbpupil-queue/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (3)Dependencies (1)Versions (5)Used By (0)

Quality Assurance
-----------------

[](#quality-assurance)

[![PHP 8](https://camo.githubusercontent.com/55119e0553f52e25200843d20c0b7f94802872deee3c7737d4dcd41a851167c6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e312d626c75652e737667)](https://camo.githubusercontent.com/55119e0553f52e25200843d20c0b7f94802872deee3c7737d4dcd41a851167c6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e312d626c75652e737667)[![Build Status](https://camo.githubusercontent.com/c2f876a7b88e253977116b73078980c0836c19580576f5c32eb75a2e2e5e582a/68747470733a2f2f6170702e7472617669732d63692e636f6d2f7662707570696c2f71756575652e7376673f6272616e63683d6d6173746572)](https://app.travis-ci.com/vbpupil/queue)[![Code Climate](https://camo.githubusercontent.com/dcb3fb8cb21b6610fd33168889b4fe7543879d70f097306baf5b4d2a1155316f/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f7662707570696c2f71756575652f6261646765732f6770612e737667)](https://codeclimate.com/github/vbpupil/queue)[![License: MIT](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](https://opensource.org/licenses/MIT)

Queue Data Structure
====================

[](#queue-data-structure)

A simple Queue data structure mechanism which allows you to set a max limit of items you wish to hold. After the max amount is met any subsequent additions will knock off items from the end.

Sample Usage
------------

[](#sample-usage)

```
include 'vendor/autoload.php';

use vbpupil\Queue\Queue;

// create a new queue and specify a limit - here we have set it to hold 1 item.
$q = new Queue(1);

//add items
$q->addItem('Item 1')
    ->addItem('Item 2')
    ->addItem('Item 3')
    ->addItem('Item 4')
    ->addItem('Item 5');

echo($q->getItems());
```

The above example will return 1 item with the value of **Item 5**.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~953 days

Total

3

Last Release

1394d ago

Major Versions

1.0.1 → 2.0.02022-09-06

### Community

Maintainers

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

---

Top Contributors

[![vbpupil](https://avatars.githubusercontent.com/u/2638990?v=4)](https://github.com/vbpupil "vbpupil (13 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/vbpupil-queue/health.svg)

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

###  Alternatives

[league/geotools

Geo-related tools PHP 7.3+ library

1.4k5.6M31](/packages/league-geotools)[illuminate/bus

The Illuminate Bus package.

6046.3M532](/packages/illuminate-bus)[uecode/qpush-bundle

Asynchronous processing for Symfony using Push Queues

1672.5M2](/packages/uecode-qpush-bundle)[belvg/module-sqs

N/A

1544.6k](/packages/belvg-module-sqs)[bsidev/bitrix-queue

Queues for Bitrix CMS

232.8k](/packages/bsidev-bitrix-queue)[mayconbordin/l5-stomp-queue

Stomp Queue Driver for Laravel 5

121.1k](/packages/mayconbordin-l5-stomp-queue)

PHPackages © 2026

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