2017 © Pedro Peláez
 

library laravel-pubsub-queue

Queue driver for Google Cloud Pub/Sub.

image

kainxspirits/laravel-pubsub-queue

Queue driver for Google Cloud Pub/Sub.

  • Tuesday, May 1, 2018
  • by kainxspirits
  • Repository
  • 1 Watchers
  • 0 Stars
  • 18 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 800 % Grown

The README.md

Laravel PubSub Queue

Build Status StyleCI, (*1)

This package is a Laravel queue driver that uses the Google PubSub service., (*2)

Installation

You can easily install this package with Composer by running this command :, (*3)

composer require kainxspirits/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 :, (*4)

Kainxspirits\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., (*5)

You can check Google Cloud PubSub client for more details about the different options., (*6)

'pubsub' => [
    'driver' => 'pubsub',
    'queue' => env('PUBSUB_QUEUE', 'default'),
    'queue_prefix' => env('PUBSUB_QUEUE_PREFIX', ''),
    'project_id' => env('PUBSUB_PROJECT_ID', 'your-project-id'),
    'retries' => 3,
    'request_timeout' => 60,
    'subscriber' => 'subscriber-name',
    'create_topics' => true,
    'create_subscriptions' => true,
],

Avoiding Administrator Operations Limits

To avoid limit issues, change the create_topics and create_subscriptions flags to false., (*7)

Testing

You can run the tests with :, (*8)

vendor/bin/phpunit

License

This project is licensed under the terms of the MIT license. See License File for more information., (*9)

The Versions

01/05 2018

dev-master

9999999-dev

Queue driver for Google Cloud Pub/Sub.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kendryck

laravel google queue gcp pubsub kainxspirits