Skip to content

DachiChang/poc-pubsub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

poc-pubsub

A simple example for testing GCP pub/sub service.

Setup

  1. create topic "hello_topic"
  2. create subscription to the topic, which named "sub_one"
  3. IAM -> create service account and add pub/sub access permission
  4. generate Token for the service account and download as "key.json" file
  5. put "key.json" in the folder with worker.php sender.php
  6. run command to install google client library "composer install"

Run

  1. php worker.php
  2. php sender.php "message you want to send"

Reference

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages