Download the PHP package gensart-x/bullmq-php without Composer

On this page you can find all versions of the php package gensart-x/bullmq-php. 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 bullmq-php

All source codes belong to BullMQ, i am just publishing this to composer.

BullMQ PHP

A PHP client library for BullMQ, the modern queue system for Node.js.

This library allows you to add jobs to a BullMQ queue from your PHP application. The jobs can then be processed by workers written in Node.js, Python, or Elixir.

Requirements

Installation

This package is distributed directly from the BullMQ monorepo. Add the repository to your composer.json and require the package:

Then run:

Or add it to an existing project:

Note: Stable releases are tagged with the format vphp{version} (e.g., vphp1.0.0). Check the releases page for available versions.

Quick Start

Creating a Queue

Adding Jobs

Job Options

Adding Multiple Jobs

Getting Job Information

Queue Management

Parent-Child Jobs (Flows)

Job States

Jobs can be in one of the following states:

Connection Options

Interoperability

Jobs added with this PHP library can be processed by BullMQ workers in:

Example Node.js worker:

Error Handling

Testing

License

MIT License - see LICENSE for details.

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines.

API Reference

Queue Methods

Method Description
add(name, data, opts) Add a single job to the queue
addBulk(jobs) Add multiple jobs in a single operation
getJob(id) Get a job by its ID
getJobs(jobIds) Get multiple jobs by their IDs
getJobsByType(types, start, end, asc) Get jobs by type(s) with pagination
getJobState(id) Get the current state of a job
getJobCounts() Get job counts for all states
getJobCountByTypes(...types) Get total count for specific types
getCountsPerPriority(priorities) Get counts grouped by priority
getWaiting(start, end) Get waiting jobs
getActive(start, end) Get active jobs
getDelayed(start, end) Get delayed jobs
getPrioritized(start, end) Get prioritized jobs
getCompleted(start, end) Get completed jobs
getFailed(start, end) Get failed jobs
pause() Pause the queue
resume() Resume the queue
isPaused() Check if queue is paused
remove(jobId) Remove a specific job
clean(grace, limit, type) Clean old jobs
drain(delayed) Remove all waiting/delayed jobs
obliterate(opts) Remove all queue data
retryJobs(opts) Retry failed/completed jobs
promoteJobs(opts) Promote delayed jobs to waiting
close() Close the connection

Job Options

Option Type Description
jobId string Custom job ID
delay int Delay in milliseconds before processing
priority int Priority (lower = higher priority)
attempts int Number of retry attempts
backoff array/int Backoff strategy for retries
lifo bool Process newest jobs first
removeOnComplete bool/int/array Remove job on completion
removeOnFail bool/int/array Remove job on failure
timestamp int Job creation timestamp (ms)
parent array Parent job reference for flows

Note on Job Schedulers: Repeatable/scheduled jobs (cron patterns) should be created from the Node.js side using JobScheduler. The PHP client is designed for adding individual jobs, not managing schedulers.

Links


All versions of bullmq-php with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
predis/predis Version ^2.0
ramsey/uuid Version ^4.7
rybakit/msgpack Version ^0.9
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 gensart-x/bullmq-php contains the following files

Loading the files please wait ...