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

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

esoftdream/queue
================

Queue system for CodeIgniter 4 with Symfony Messenger backend

1.0.0(3mo ago)0556MITPHPPHP ^8.1CI passing

Since Mar 31Pushed 3mo agoCompare

[ Source](https://github.com/esoftdream/queue)[ Packagist](https://packagist.org/packages/esoftdream/queue)[ Docs](https://github.com/esoftdream/queue)[ RSS](/packages/esoftdream-queue/feed)WikiDiscussions develop Synced 3w ago

READMEChangelogDependencies (7)Versions (6)Used By (0)

Esoftdream Queue
================

[](#esoftdream-queue)

Queues for the CodeIgniter 4 framework with support for Database and Symfony Messenger backends.

[![PHPUnit](https://github.com/esoftdream/queue/actions/workflows/phpunit.yml/badge.svg)](https://github.com/esoftdream/queue/actions/workflows/phpunit.yml)[![PHPStan](https://github.com/esoftdream/queue/actions/workflows/phpstan.yml/badge.svg)](https://github.com/esoftdream/queue/actions/workflows/phpstan.yml)[![License](https://camo.githubusercontent.com/d6bc2b26794002c24d023acaab01b6dbb953c57ab9cb80ba5b8aa2f2bd5de99a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c7565)](LICENSE)

[![PHP](https://camo.githubusercontent.com/d6aac44f81cb2e6f4e71f098a1cb4a71992f24f7bfb424f6670db8313c9a855c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e312d626c7565)](https://camo.githubusercontent.com/d6aac44f81cb2e6f4e71f098a1cb4a71992f24f7bfb424f6670db8313c9a855c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e312d626c7565)[![CodeIgniter](https://camo.githubusercontent.com/c734831bac4c2b16560b67ba21e733b0cc4d22002511ad075b52516d1551862d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f646549676e697465722d253545342e362d626c7565)](https://camo.githubusercontent.com/c734831bac4c2b16560b67ba21e733b0cc4d22002511ad075b52516d1551862d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f646549676e697465722d253545342e362d626c7565)

Note

A queue system is typically used to handle resource-intensive or time-consuming tasks (e.g., image processing, sending emails) that are to be run in the background. It can also be a way to postpone certain activities that are to be executed automatically later.

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

[](#installation)

Install via composer:

```
composer require esoftdream/queue
```

Migrate your database (if using the database handler):

```
php spark migrate --all
```

Configuration
-------------

[](#configuration)

Publish the configuration file to your `app/Config` directory:

```
php spark queue:publish
```

This will create `app/Config/Queue.php`. You can then customize your queue settings, such as the default handler and job handlers.

### Create your first Job

[](#create-your-first-job)

Generate a new job class:

```
php spark queue:job SendEmail
```

This will create `app/Jobs/SendEmail.php`. Open it and implement the `process()` method:

```
