PHPackages                             tina4components/tina4jobsmodule - 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. tina4components/tina4jobsmodule

ActiveComposer-plugin[Queues &amp; Workers](/categories/queues)

tina4components/tina4jobsmodule
===============================

This is a package that will allows you to add a redis jobs queue to any tin4 project

v0.0.9-beta(1mo ago)125MITPHP

Since Feb 10Pushed 1mo ago1 watchersCompare

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

READMEChangelog (8)Dependencies (8)Versions (10)Used By (0)

Welcome to the Tina4 Jobs Module
--------------------------------

[](#welcome-to-the-tina4-jobs-module)

This package uses a redis server to manage the jobs and to run them on a schedule. It is designed to be a simple way to manage jobs and to be able to run them on a schedule.

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

[](#installation)

To install the package you can use the following command

```
composer require tina4components/tina4jobsmodule
```

Usage (DATABASE QUEUE)
----------------------

[](#usage-database-queue)

```
    QUEUE_DRIVER: database
```

Usage (REDIS QUEUE - Still in Beta)
-----------------------------------

[](#usage-redis-queue---still-in-beta)

There are two variables that you need to set in your .env file

```
    QUEUE_DRIVER: redis
    REDIS_HOST:
    REDIS_PORT:
```

General Usage
-------------

[](#general-usage)

When creating a job you need to create a class that implements the `Tina4Job` interface and implement the `handle()` method. The `handle()` method is the method that will be called when the job is run.

The following is an example of a job that writes a user to a file, All job classes need to extend Tina4Job abstract class.

```
