PHPackages                             ignitor/queues - 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. [Framework](/categories/framework)
4. /
5. ignitor/queues

ActiveLibrary[Framework](/categories/framework)

ignitor/queues
==============

Better Queues for CodeIgniter 4

v1.2.3(1y ago)1100↓100%MITPHPPHP &gt;= 8.1

Since Oct 26Pushed 1y ago1 watchersCompare

[ Source](https://github.com/hsemix/ignitor-queues)[ Packagist](https://packagist.org/packages/ignitor/queues)[ RSS](/packages/ignitor-queues/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (3)Versions (8)Used By (0)

Laravel Like Queues for CodeIgniter 4
=====================================

[](#laravel-like-queues-for-codeigniter-4)

This is a Laravel like Queues for CodeIgniter 4.

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

[](#installation)

You can install the package via composer:

```
composer require ignitor/queues:^1.0@dev

php spark queue:table

php spark migrate
```

Usage
-----

[](#usage)

```
// In your method
public function testQueue()
{
    toQueue(function () {
        sleep(10);
        // log to file or send an email
    });

    return "Request is being Processed";
}
```

```
php spark queue:work
```

Dedicated Job Class
-------------------

[](#dedicated-job-class)

If you want to use a dedicated Job class, you can use the `make:job` command.

```
php spark make:job TestJob
```

### Job Class

[](#job-class)

```
