previewtechs / google-pubsub-utility
Google Pub/Sub PHP push webhook receiver object mapper
Installs: 21
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/previewtechs/google-pubsub-utility
Requires
- netresearch/jsonmapper: ^1.1
This package is auto-updated.
Last update: 2025-10-06 11:32:38 UTC
README
####Google Pub/Sub Web Hook Receiver
Usage
<?php require "vendor/autoload.php"; $mapper = new JsonMapper(); /** * @var $messageObject \Previewtechs\GooglePubSubUtility\WebHookReceiver\WebHook */ $messageObject = $mapper->map(json_decode($_POST), new \Previewtechs\GooglePubSubUtility\WebHookReceiver\WebHook()); var_dump($messageObject->getMessage()->getData()->getDecoded());