sohaibilyas/catch-webhooks

Simple API to receive webhooks (real-time updates) sent by social websites e.g. Facebook using PHP.

Installs: 11

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 2

Forks: 1

Open Issues: 0

pkg:composer/sohaibilyas/catch-webhooks

v1.0.0 2019-07-26 22:40 UTC

This package is auto-updated.

Last update: 2025-11-27 13:00:32 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);
    }
});