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

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

strukt/queue
============

Memcached Queue

01PHP

Since Apr 6Pushed 1y ago1 watchersCompare

[ Source](https://github.com/struktapp/strukt-queue)[ Packagist](https://packagist.org/packages/strukt/queue)[ RSS](/packages/strukt-queue/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Strukt Queue
============

[](#strukt-queue)

Simple implementation of a Message Queue that uses Memcached as backend

Needs PHP Memcached extensions installed to work properly

### Requirements

[](#requirements)

```
sudo apt install memcached
sudo apt install php-memcached
sudo apt install libmemcached-tools # cli tools
```

Usage
-----

[](#usage)

### Wait

[](#wait)

```
//wait.php
$data = ["username"=>"pitsolu", "password"=>"p@55w0rd"];
wait("queue_test", $data, function($reply){

	print_r($reply);
});
```

### Reply

[](#reply)

```
//reply.php
reply("queue_test", function($data){

	$data["processed"] = true;

	return $data;
});
```

Other Usages
------------

[](#other-usages)

### Pop

[](#pop)

```
$data = array(
	"username"=>"pitsolu",
	"password"=>"p@55w0rd"
);

$uid = push("queue_test", $data);
```

### Push

[](#push)

```
list($oid, $udata) = pop("queue_test");

print_r(array(

	"uid"=>$uid,
	"oid"=>$oid,
	"data"=>$data,
	"udata"=>$udata
));
```

Credits
-------

[](#credits)

```
@author Maurizio Giunti https://www.mauriziogiunti.it / https://codeguru.it
@license MIT

```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity15

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6f77a56030c77ce25f7fcf6db800e45bb6a31bf3c07740b43aeabcdf5e9edec2?d=identicon)[pitsolu](/maintainers/pitsolu)

---

Top Contributors

[![pitsolu](https://avatars.githubusercontent.com/u/16669704?v=4)](https://github.com/pitsolu "pitsolu (5 commits)")

### Embed Badge

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

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

###  Alternatives

[league/geotools

Geo-related tools PHP 7.3+ library

1.4k5.3M26](/packages/league-geotools)[amphp/parser

A generator parser to make streaming parsers simple.

14952.8M16](/packages/amphp-parser)[amphp/serialization

Serialization tools for IPC and data storage in PHP.

13451.1M18](/packages/amphp-serialization)[enqueue/enqueue

Message Queue Library

19820.0M56](/packages/enqueue-enqueue)[deliciousbrains/wp-background-processing

WP Background Processing can be used to fire off non-blocking asynchronous requests or as a background processing tool, allowing you to queue tasks.

1.1k409.8k6](/packages/deliciousbrains-wp-background-processing)[react/async

Async utilities and fibers for ReactPHP

2238.8M171](/packages/react-async)

PHPackages © 2026

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