PHPackages                             activecollab/jobsqueue - 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. activecollab/jobsqueue

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

activecollab/jobsqueue
======================

Simple jobs queue

5.0.1(2y ago)571.3k↓17%3[2 PRs](https://github.com/activecollab/jobsqueue/pulls)MITPHPPHP &gt;=8.0

Since Aug 8Pushed 1y ago3 watchersCompare

[ Source](https://github.com/activecollab/jobsqueue)[ Packagist](https://packagist.org/packages/activecollab/jobsqueue)[ Docs](https://labs.activecollab.com)[ RSS](/packages/activecollab-jobsqueue/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (7)Versions (44)Used By (0)

JobsQueue Library
=================

[](#jobsqueue-library)

[![Build Status](https://camo.githubusercontent.com/eff342c76a355319d661c69e6da8ac3dcc0bbf1511762623b00f7269fdbf850a/68747470733a2f2f7472617669732d63692e6f72672f616374697665636f6c6c61622f6a6f627371756575652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/activecollab/jobsqueue)

Reason for existence: it's light, with very few dependencies. It can be used with cron + database powered queues for people who are not allowed to run a proper messaging or job management server. Or you can execute jobs through proper messaging or job manager with it.

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

[](#installation)

To install it, use Composer:

```
{
    "require": {
        "activecollab/jobsqueue": "^1.0.0"
    }
}
```

Basic Usage
-----------

[](#basic-usage)

This library uses three elements:

1. Dispatcher is here to dispatch jobs,
2. Queues make sure that jobs can be queued,
3. Jobs perform the actual work.

As a demonstration, we'll create a simple job that increments a number:

```
