PHP Google\Cloud\PubSub Topic::publish - 1 examples found. These are the top rated real world PHP examples of Google\Cloud\PubSub\Topic::publish extracted from open source projects. You can rate examples to help us improve the quality of examples.
$message must provide at least one of data and attributes members.
Example:
$topic->publish([
'data' => 'New User Registered',
'attributes' => [
'id' => 1,
'userName' => 'John',
'location' => 'Detroit'
]
]);
See also:
https://cloud.google.com/pubsub/docs/reference/rest/v1/projects.topics/publish Publish Message