Skip to content

lolibrary/pubsub

This branch is 4 commits ahead of, 51 commits behind kainxspirits/laravel-pubsub-queue:master.

Folders and files

NameName
Last commit message
Last commit date
Jan 8, 2019
Jan 8, 2019
Sep 5, 2018
Jan 8, 2019
Sep 5, 2018
Sep 5, 2018
Jan 8, 2019
Jan 8, 2019
Jan 8, 2019
Jan 8, 2019
Sep 5, 2018

Repository files navigation

Laravel PubSub Queue

Travis StyleCI

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

Installation

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

composer require lolibrary/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 :

Lolibrary\PubSub\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', 'default'),
    'project_id' => env('PUBSUB_PROJECT_ID', 'your-project-id'),
    'retries' => 3,
    'request_timeout' => 60
],

Testing

You can run the tests with :

vendor/bin/phpunit

License

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

About

A Laravel queue driver for Google PubSub.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%