<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
netodomenico / php-discord-git-notifications example snippets
use ArsDigitalia\Repository;
$repository = new Repository();
$repository->addWebhooks([
// Example for GitHub
'{github_hook_uuid}' => 'https://discord.com/api/webhooks/{channel_id}/{webhook_id}',
// Example for Bitbucket
'{bitbucket_webhook_uuid}' => 'https://discord.com/api/webhooks/{channel_id}/{webhook_id}',
// Example for Gitlab
'{gitlab_project_id}' => 'https://discord.com/api/webhooks/{channel_id}/{webhook_id}',
]);