PHP code example of ikwattro / github-event
1. Go to this page and download the library: Download ikwattro/github-event 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/ */
ikwattro / github-event example snippets
use Ikwattro\GithubEvent\EventHandler;
$eventHandler = EventHandler::create()
->build();
$events = json_decode('events.json', true);
foreach ($events as $e) {
$event = $eventHandler->handleEvent($e);
}