PHP code example of digitalmanagerguru / laravel-pubsub-queue
1. Go to this page and download the library: Download digitalmanagerguru/laravel-pubsub-queue library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
digitalmanagerguru / laravel-pubsub-queue example snippets
Digitalmanagerguru\PubSubQueue\PubSubQueueServiceProvider::class,
'pubsub' => [
'driver' => 'pubsub',
'queue' => env('PUBSUB_QUEUE', 'default'),
'queue_prefix' => env('PUBSUB_QUEUE_PREFIX', ''),
'project_id' => env('PUBSUB_PROJECT_ID', 'your-project-id'),
'retrySettings' => [
"maxRetries" => 3
],
'request_timeout' => 60,
'subscriber' => 'subscriber-name',
'create_topics' => true,
'create_subscriptions' => true,
],