Download the PHP package codeigniterext/queue without Composer
On this page you can find all versions of the php package codeigniterext/queue. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download codeigniterext/queue
More information about codeigniterext/queue
Files in codeigniterext/queue
Package queue
Short Description Queue Job module for CodeIgniter 4
License MIT
Informations about the package queue
Queue Jobs for Codeigniter 4
Queue Jobs module for CodeIgniter 4 with CLI Persistors:
- Codeigniter
- MySQLi
- PDO
- PostgreSQL
- Oracle
- ODBC
- ....
- PDO (Does not use a codeigniter modeling system and is self-contained)
- Redis
//TODO: will be added
I look forward to every help, further development and recommendation
Installing
install this package
or
Now you can use the following commands from the command prompt
Configuration
Run the following command from the command prompt, and it will copy queue migration (20190526184519_queue_tasks.php
) and config (Queue.php
) into your application
Then in your Config/Modules.php, change this :
Then
NOTE: If you do not want to use a codeigniter persistor, simply confirm the Publish Config file and type in Publish queue migration:
n
finally go to config file and edit that
Use it
1. Codeigniter Persistor
in queue config file you must enter codeigniter as connection:
Now use the following commands from the command prompt to migrate queue table
NOTE: You must have previously entered the command
php spark queue: publish
and type in Publish queue migration:y
2. PDO Persistor
in queue config file you must enter PDO as connection:
Create a table with the following SQL code:
Add a task in queue
Run the worker
To keep the queue:work process running permanently in the background, you should use a process monitor such as Supervisor to ensure that the queue worker does not stop running.
inspiration from anorgan/QuTee (a PHP Background Jobs (Tasks) Manager)