Download the PHP package g4t/laravel-bee-queue without Composer

On this page you can find all versions of the php package g4t/laravel-bee-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 laravel-bee-queue

A simple, fast, Redis-backed job queue for Laravel — a PHP port of bee-queue (Node.js).

Jobs pushed from JS bee-queue can be consumed by the PHP worker and vice versa — they share the exact same Redis data layout.


Installation

bee-queue-assets copies the dashboard logo into public/vendor/bee-queue/. Run this once after install.


Configuration

Publish the config file and set your .env keys:

Key Default Description
BEE_QUEUE_DEFAULT default Default queue name
BEE_QUEUE_REDIS_CONNECTION default Redis connection from config/database.php
BEE_QUEUE_PREFIX bq Redis key prefix
BEE_QUEUE_CONCURRENCY 1 Worker concurrency
BEE_QUEUE_TIMEOUT 60 Job timeout in seconds
BEE_QUEUE_STALL_INTERVAL 5000 Stall check interval in ms
BEE_QUEUE_RETRY_ATTEMPTS 3 Max retry attempts
BEE_QUEUE_RETRY_BACKOFF fixed fixed or exponential
BEE_QUEUE_RETRY_DELAY 5 Retry delay in seconds
BEE_QUEUE_REMOVE_ON_SUCCESS false Delete job data after success
BEE_QUEUE_REMOVE_ON_FAILURE false Delete job data after failure
BEE_QUEUE_DASHBOARD_PATH bee-queue URL path for the dashboard

Retry backoff strategies


Basic Usage

Creating & enqueuing a job


Processing Jobs

Option 1 — Closure handler (quick/inline)

Option 2 — Handler class with --handler flag

Create a handler class implementing JobContract:

Run the worker with it:

This handler receives every job on that queue regardless of data content — ideal for jobs pushed from JS bee-queue.

Option 3 — Auto-resolve handler from job data

Include a class key when pushing from PHP:

Run the worker without --handler — it will auto-resolve the class:

Routing multiple job types in one handler


Artisan Commands


Dashboard

The package ships with a built-in web dashboard for monitoring and managing your queues.

Setup

Accessing the dashboard

Visit /bee-queue in your browser (or whatever path you set via BEE_QUEUE_DASHBOARD_PATH).

Features

Middleware & path

Configure the dashboard in config/bee-queue.php:

To protect the dashboard behind authentication:


Events

Listen to these events in your EventServiceProvider:

Event Properties Description
G4T\BeeQueue\Events\JobSucceeded $job Job completed successfully
G4T\BeeQueue\Events\JobFailed $job, $exception Job exhausted all retries
G4T\BeeQueue\Events\JobRetrying $job, $exception, $nextAttempt Job is being retried
G4T\BeeQueue\Events\JobProgress $job, $progress Job reported progress

Cross-compatibility with JS bee-queue

This package uses the exact same Redis data layout as the Node.js bee-queue library, so you can mix producers and consumers across languages:


Redis Data Layout

Each job is stored as a JSON string in the jobs hash:


License

MIT


All versions of laravel-bee-queue with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
illuminate/redis Version ^10.0|^11.0|^12.0|^13.0
illuminate/console Version ^10.0|^11.0|^12.0|^13.0
illuminate/events Version ^10.0|^11.0|^12.0|^13.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 g4t/laravel-bee-queue contains the following files

Loading the files please wait ...