Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

arquivei/laravel-pubsub-queue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel PubSub Queue

This package is a Laravel queue driver that uses the Google PubSub service.

Installation

You can easily install this package with Composer by running this command :

composer require arquivei/laravel-pubsub-queue

If you disabled package discovery, you can still manually register this package by adding the following line to the providers of your config/app.php file :

Arquivei\PubSubQueue\PubSubQueueServiceProvider::class,

Configuration

Add a pubsub connection to your config/queue.php file. From there, you can use any configuration values from the original pubsub client. Just make sure to use snake_case for the keys name.

You can check Google Cloud PubSub client for more details about the different options.

'pubsub' => [
    'driver' => 'pubsub',
    'queue' => env('PUBSUB_QUEUE', ''),
    'queue_prefix' => env('PUBSUB_QUEUE_PREFIX', ''),
    'project_id' => env('PUBSUB_PROJECT_ID', ''),
    'request_timeout' => 60,
    'subscriber' => env('PUBSUB_QUEUE', ''),
    'create_topics' => false,
    'create_subscriptions' => false,
],

License

This project is licensed under the terms of the MIT license. See License File for more information.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages