phpsimple/queue

Php Simple FIFO queue implementation

Fund package maintenance!
Issuehunt

1.0.0 2022-12-13 23:29 UTC

This package is auto-updated.

Last update: 2024-12-04 15:58:55 UTC


README


Queue

Very simple FIFO queue implementation

Test Coverage Scrutinizer Code Quality Build Status

Installation

The recommended way to install is via Composer:

composer require phpsimple/queue

Usage

use PhpSimple\Queue;

$queue = new Queue();

for ($i = 0; $i < 10; $i++) {
    $queue->push($i);
}

while ($item = $queue->pop()) {
    var_dump($item);
}

Stand With Ukraine