Requirements
- PHP
^8.6 - Laravel 13 (
illuminate/queue,illuminate/consoleandilluminate/support^13.34) - Livewire
^4.0 - Redis 7+ or Valkey (Redis Streams support)
webpatser/fledge-fiber^13.43.0.3andwebpatser/fledge-loop^0.1, installed automatically
Torque supports only the latest stable PHP release. When a new PHP version is released, the next Torque release requires it and support for the previous one ends.
laravel/slack-notification-channel below 3.6 conflicts with Torque. Slack long-wait alerts need version 3.6 or newer.
Install
composer require webpatser/torque
Publish the config:
php artisan vendor:publish --tag=torque-config
Queue connection
Add the connection to config/queue.php:
'torque' => [ 'driver' => 'torque', 'queue' => env('TORQUE_QUEUE', 'default'), 'retry_after' => 90, 'block_for' => 2000, 'prefix' => 'torque:', 'redis_uri' => env('TORQUE_REDIS_URI', 'redis://127.0.0.1:6379'), 'consumer_group' => 'torque',],
Make it the default in .env:
QUEUE_CONNECTION=torque
Optional packages
ext-igbinaryandTORQUE_SERIALIZER=igbinaryfor faster payload encoding. See Configuration.
Dashboard
The dashboard is off by default. Set TORQUE_DASHBOARD=true to turn it on and define the viewTorque gate; see the quick start.