sohaibilyas / catch-webhooks
Simple API to receive webhooks (real-time updates) sent by social websites e.g. Facebook using PHP.
v1.0.0
2019-07-26 22:40 UTC
This package is auto-updated.
Last update: 2024-09-27 10:25:15 UTC
README
Simple API to receive webhooks (real-time updates) sent by social websites e.g. Facebook using PHP.
Installation
composer require sohaibilyas/catch-webhooks
Usage
use SohaibIlyas\CatchWebhooks\FacebookWebhook; require './vendor/autoload.php'; $facebookWebhook = new FacebookWebhook('fb-app-secret'); $facebookWebhook->get(function($type, $webhookArray) { // type can be page or user if ($type === 'page') { print_r($webhookArray); } });