PHP code example of org_heigl / webhookhandler
1. Go to this page and download the library: Download org_heigl/webhookhandler library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
org_heigl / webhookhandler example snippets
$uriFactory = \Http\Discovery\UriFactoryDiscovery::find();
$uri = $uriFactory->createUri('http://example.com/');
$handler = new WebHookHandler(
$uri,
Logger::DEBUG,
\Http\Discovery\HttpAsyncClientDiscovery::find(),
Http\Discovery\MessageFactoryDiscovery::find()
);
$handler->setFrom('WhateverYouWant');
$logger = new Logger('example');
$logger->pushHandler($handler);
$logger->log('Whatever you want to say');