PHPackages                             visual-craft/work-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. visual-craft/work-queue

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

visual-craft/work-queue
=======================

Work queue using Beanstalk

v0.2.0(3y ago)010.4k↑100%1MITPHPPHP &gt;=7.4.0

Since Jan 27Pushed 3y ago2 watchersCompare

[ Source](https://github.com/Visual-Craft/work-queue)[ Packagist](https://packagist.org/packages/visual-craft/work-queue)[ Docs](https://github.com/Visual-Craft/WorkQueue)[ RSS](/packages/visual-craft-work-queue/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (4)Used By (1)

Work Queue
==========

[](#work-queue)

Simple work queue using Beanstalk

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

[](#installation)

```
$ composer require visual-craft/work-queue

```

Usage
-----

[](#usage)

Create the queue manager

```
use Pheanstalk\Pheanstalk;
use VisualCraft\WorkQueue\Logger;
use VisualCraft\WorkQueue\QueueManager;

$manager = new QueueManager(
    Pheanstalk::create('127.0.0.1', 11300),
    'some_queue',
    new Logger(null)
);
```

Setup queue processor and worker

```
use VisualCraft\WorkQueue\QueueProcessor;
use VisualCraft\WorkQueue\Worker\JobMetadata;
use VisualCraft\WorkQueue\Worker\WorkerInterface;

class SomeWorker implements WorkerInterface
{
    public function work($payload, JobMetadata $metadata): void
    {
        // Process job
    }
}

// Create the queue processor and provide it with the worker
$processor = new QueueProcessor(
    $manager,
    new SomeWorker(),
);

// Process the queue
while($processor->process()) {}
```

Setup job adder and add the job

```
$adder = new JobAdder($manager);
$id = $adder->add('some data');
```

License
-------

[](#license)

MIT

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.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 ~497 days

Total

2

Last Release

1440d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/688129?v=4)[Anton Bakai](/maintainers/inso)[@inso](https://github.com/inso)

---

Top Contributors

[![inso](https://avatars.githubusercontent.com/u/688129?v=4)](https://github.com/inso "inso (7 commits)")[![denisVedmedev](https://avatars.githubusercontent.com/u/98584536?v=4)](https://github.com/denisVedmedev "denisVedmedev (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/visual-craft-work-queue/health.svg)

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

###  Alternatives

[symfony/messenger

Helps applications send and receive messages to/from other applications or via message queues

1.1k120.7M958](/packages/symfony-messenger)[symfony/amazon-sqs-messenger

Symfony Amazon SQS extension Messenger Bridge

4612.5M15](/packages/symfony-amazon-sqs-messenger)[pmg/queue

A task queue framework for PHP

13460.6k8](/packages/pmg-queue)[symfony/beanstalkd-messenger

Symfony Beanstalkd Messenger Bridge

19357.4k2](/packages/symfony-beanstalkd-messenger)[webfactory/icu-translation-bundle

Enables ICU message formatting for translations in Symfony applications.

2761.8k](/packages/webfactory-icu-translation-bundle)[amphp/cluster

Building multi-core network applications with PHP.

6224.8k1](/packages/amphp-cluster)

PHPackages © 2026

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