Skip to content

phpsimple/queue

Repository files navigation


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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Languages