Skip to content

Commit e73d67f

Browse files
committed
Updated README.md
1 parent 45bc208 commit e73d67f

File tree

1 file changed

+20
-10
lines changed

1 file changed

+20
-10
lines changed

README.md

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
# Laravel PubSub Queue
22

3-
[![Travis](https://img.shields.io/travis/kainxspirits/laravel-pubsub-queue.svg)](https://github.com/kainxspirits/laravel-pubsub-queue)
3+
[![Travis](https://img.shields.io/travis/munir131/laravel-pubsub-queue/5.8?style=for-the-badge)](https://github.com/munir131/laravel-pubsub-queue)
44
[![StyleCI](https://styleci.io/repos/131718560/shield)](https://styleci.io/repos/131718560)
55

6-
This package is a Laravel 5.7 queue driver that use the [Google PubSub](https://github.com/GoogleCloudPlatform/google-cloud-php-pubsub) service.
6+
This package is a Laravel 5.8 queue driver that use the [Google PubSub](https://github.com/GoogleCloudPlatform/google-cloud-php-pubsub) service.
77

88
## Installation
99

1010
You can easily install this package with [Composer](https://getcomposer.org) by running this command :
1111

1212
```bash
13-
composer require kainxspirits/laravel-pubsub-queue
13+
composer require munir131/laravel-pubsub-queue
1414
```
1515

1616
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 :
1717

1818
```php
19-
Kainxspirits\PubSubQueue\PubSubQueueServiceProvider::class,
19+
PubSub\PubSubQueue\PubSubQueueServiceProvider::class,
2020
```
2121

2222
## Configuration
@@ -27,12 +27,22 @@ You can check [Google Cloud PubSub client](http://googlecloudplatform.github.io/
2727

2828
```php
2929
'pubsub' => [
30-
'driver' => 'pubsub',
31-
'queue' => env('PUBSUB_QUEUE', 'default'),
32-
'project_id' => env('PUBSUB_PROJECT_ID', 'your-project-id'),
33-
'retries' => 3,
34-
'request_timeout' => 60
35-
],
30+
'driver' => 'pubsub',
31+
'queue' => env('JOB_PUB'),
32+
'project_id' => env('PUBSUB_PROJECT_ID', 'your-project-id'),
33+
'retries' => 5,
34+
'request_timeout' => 60,
35+
'keyFilePath' => env('PUBSUB_KEY_FILE', storage_path('Asyncro-978055.json')),
36+
// Subscriber will be key and publisher will be value here
37+
'subscribers' => [
38+
'sub1' => 'topic1',
39+
'sub2' => 'topic2',
40+
'sub3' => 'topic2' // Multiple subscriber to single topic
41+
],
42+
'plain_handlers' => [
43+
'plain_sub' => App\Jobs\PlainClass::class // This one for non laravel format messages.
44+
],
45+
],
3646
```
3747

3848
## Testing

0 commit comments

Comments
 (0)