PHPackages                             otsch/ppq - 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. otsch/ppq

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

otsch/ppq
=========

A very simple PHP queue system to run background tasks.

v0.2.0(1y ago)41.1kMITPHPPHP ^8.1

Since Jun 21Pushed 1y ago1 watchersCompare

[ Source](https://github.com/otsch/ppq)[ Packagist](https://packagist.org/packages/otsch/ppq)[ RSS](/packages/otsch-ppq/feed)WikiDiscussions main Synced 1mo ago

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

PPQ
===

[](#ppq)

(Pew Pew Queue or also PHP Queue)
---------------------------------

[](#pew-pew-queue-or-also-php-queue)

This is a very simple PHP queue system to run background tasks.

ℹ️ It's currently in a very early stage, so don't use it in production yet! Until v1.0 there can be changes that are breaking backwards compatibility in any minor version.

Features:

- Runs on **filesystem only**! You don't need any redis, database or any other infrastructure dependency (except ideally something like supervisor to assure the queue is always running, but that's not a must).
- All background tasks are started in separate (child) PHP processes. Therefor **code changes** in job classes **immediately affect newly started jobs** without restarting anything.
- **Gracefully stop the queue worker** =&gt; don't start new jobs and wait until currently running jobs are finished.
- Define **as many queues as you want** and the limits **how many jobs** they should run **in parallel** (at most).

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

[](#installation)

```
composer require otsch/ppq
```

Usage
-----

[](#usage)

### Config

[](#config)

The system needs a config file, defining at least a `datapath` (only mandatory setting). Below you can see a config file with all available config options.

```
