ayles-software/laravel-cloudflare-queue

Cloudflare queue driver for laravel.

0.1.0 2025-05-28 00:30 UTC

This package is auto-updated.

Last update: 2025-05-28 00:32:46 UTC


README

A Laravel queue driver for Cloudflare Queues.

Configuration

Add the following to your config/queue.php file:

'cloudflare' => [
    'driver' => 'cloudflare',
    'raw' => false, // handles raw jobs that have been pushed not via laravel, e.g. CF workers
    'handler' => CloudflareRawJobHandler::class,
    'account_id'=> env('CLOUDFLARE_ACCOUNT_ID'),
    'queue_id'  => env('CLOUDFLARE_QUEUE_ID'),
    'api_token' => env('CLOUDFLARE_API_TOKEN'),
],

Testing

This package includes a comprehensive test suite using Pest PHP. To run the tests:

  1. Install dependencies:

    composer install
  2. Run the tests:

    ./vendor/bin/pest