Skip to content

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

License

Notifications You must be signed in to change notification settings

sohaibilyas/catch-webhooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Catch Webhooks

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);
    }
});

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages