myli / laravel-jobs-plain
Custom connectors for Laravel that supports plain JSON instead of laravel-specifics format
Installs: 7 997
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 8
Forks: 0
Open Issues: 0
Requires
- php: >=7.2
- ext-json: *
- google/cloud-pubsub: ^1.1
- illuminate/bus: 5.7.* | 5.8.* | ^6.0 | ^7.0 | ^8.0
- illuminate/queue: 5.7.* | 5.8.* | ^6.0 | ^7.0 | ^8.0
- illuminate/support: 5.7.* | 5.8.* | ^6.0 | ^7.0 | ^8.0
- ramsey/uuid: ^4.1|^3.9
Requires (Dev)
- phpspec/phpspec: ^5.1|^6.1
This package is auto-updated.
Last update: 2024-10-24 15:57:18 UTC
README
composer require myli/laravel-jobs-plain
Remove the laravel dependency on jobs allowing you to process queue jobs with other non-laravel services that push plain json jobs into the queue.
Config
Add the following to your config/queue.php
:
'sqs-plain' => [
'driver' => 'sqs-plain',
'key' => env('AWS_QUEUE_KEY'),
'secret' => env('AWS_QUEUE_SECRET'),
'prefix' => env('AWS_PREFIX'),
'queue' => 'test',
'region' => 'eu-west-1',
],
'pubsub-plain' => [
'driver' => 'pubsub-plain',
'queue' => 'test',
'project_id' => env('PUBSUB_PROJECT_ID'),
'retries' => 3,
'request_timeout' => 60,
'keyFilePath' => base_path() . '/' . env('PUBSUB_QUEUE_KEY'),
],