Download the PHP package ez-php/queue without Composer

On this page you can find all versions of the php package ez-php/queue. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package queue

ez-php/queue

Async job queue for the ez-php framework — database and Redis drivers, a Worker, and a queue:work console command.

Requirements

Installation

Setup

Register the service provider:

Add the worker command to the CLI:

Add config/queue.php to your application:

Defining Jobs

Dispatching Jobs

Delay a job by setting $delay (seconds):

Note: The Redis driver does not enforce $delay. Use the database driver for delayed job delivery.

Running the Worker

Drivers

Database Driver (default)

Stores jobs in a jobs table and failed jobs in failed_jobs. Both tables are created automatically. Requires a configured DatabaseInterface in the container.

Supports delayed delivery via available_at column.

Redis Driver

Uses ext-redis. Jobs are pushed to queues:{name} (RPUSH) and consumed via LPOP (FIFO). Failed jobs are appended to queues:failed:{name}.

Delayed delivery is not enforced — jobs are queued immediately regardless of $delay.

Failed jobs

The database driver stores permanently failed jobs and exposes management commands:

Monitoring

Scheduling

Register recurring jobs in a service provider's boot():

Run queue:schedule every minute via system cron:

Classes

Class Description
Job Abstract base class for all jobs
Worker Pops and executes jobs; handles retries and permanent failures
QueueServiceProvider Registers QueueInterface and Worker with the DI container
Driver\DatabaseDriver PDO-backed driver with atomic pop, delayed delivery, and FailedJobRepositoryInterface
Driver\RedisDriver Redis-backed driver via ext-redis
FailedJobRepositoryInterface Contract for failed-job stores: all(), retry(), forget(), flush()
Scheduling\Scheduler Registry of recurring jobs; evaluates due tasks by cron expression
Scheduling\ScheduledTask Fluent builder: daily(), hourly(), everyMinutes(), cron()
Console\WorkCommand queue:work CLI command
Console\MonitorCommand queue:monitor CLI command
Console\FailedCommand queue:failed CLI command
Console\ScheduleRunCommand queue:schedule CLI command
QueueException Base exception for queue errors

Setup (standalone development)


All versions of queue with dependencies

PHP Build Version
Package Version
Requires php Version ^8.5
ext-pdo Version *
ez-php/contracts Version ^1.0
ez-php/console Version ^1.0
ez-php/framework Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ez-php/queue contains the following files

Loading the files please wait ...