sohaibilyas/catch-webhooks

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

Maintainers

Package info

github.com/sohaibilyas/catch-webhooks

pkg:composer/sohaibilyas/catch-webhooks

Statistics

Installs: 11

Dependents: 0

Suggesters: 0

Stars: 3

Open Issues: 0

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

This package is auto-updated.

Last update: 2026-02-27 13:46:44 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);
    }
});