PHPackages                             visual-craft/beanstalk-scheduler - 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/beanstalk-scheduler

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

visual-craft/beanstalk-scheduler
================================

Background jobs scheduling using Beanstalk

v0.1.1(6y ago)014.9k1PHPPHP &gt;=5.5.0

Since Jul 9Pushed 6y ago2 watchersCompare

[ Source](https://github.com/Visual-Craft/beanstalk-scheduler)[ Packagist](https://packagist.org/packages/visual-craft/beanstalk-scheduler)[ Docs](https://github.com/Visual-Craft/beanstalk-scheduler)[ RSS](/packages/visual-craft-beanstalk-scheduler/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (3)Used By (1)

Beanstalk Scheduler
===================

[](#beanstalk-scheduler)

Background jobs scheduling using Beanstalk

Install
-------

[](#install)

```
$ composer require visual-craft/beanstalk-scheduler

```

Usage
-----

[](#usage)

```
// Create Beanstalkd connection
$connection = new \Pheanstalk\Pheanstalk('127.0.0.1');

// Add job
$manager = new \VisualCraft\BeanstalkScheduler\Manager($connection, 'some_queue');
$job = new \VisualCraft\BeanstalkScheduler\Job('some data');
$manager->submit($job);
// or
//$manager->submit($job, 60); // with the delay of 60 seconds

// Define worker
class SomeWorker implements \VisualCraft\BeanstalkScheduler\WorkerInterface
{
    public function work(Job $job)
    {
        // do some work
        // $job->getPayload() returns 'some data'

        // you can reschedule failed job:
        // throw new \VisualCraft\BeanstalkScheduler\Exception\RescheduleJobException();
    }

    public function isReschedulableException(\Exception $exception)
    {
        // Another way of rescheduling failed job
        // Put some logic here
        return true;
    }

    public function fail(Job $job)
    {
        // Optionally you can do something with failed job
    }
}

// Process job
$scheduler = new \VisualCraft\BeanstalkScheduler\Scheduler($connection, 'some_queue');
$scheduler
    ->setWorker(new SomeWorker())
    // Define rescheduling configuration:
    ->setReschedule([20, 30])
;
$scheduler->process();

```

License
-------

[](#license)

This code is released under the MIT license. See the complete license in the file: `LICENSE`

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.7% 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 ~125 days

Total

2

Last Release

2372d 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 (6 commits)")[![harentius](https://avatars.githubusercontent.com/u/4300680?v=4)](https://github.com/harentius "harentius (1 commits)")

### Embed Badge

![Health badge](/badges/visual-craft-beanstalk-scheduler/health.svg)

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

###  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)
