PHP code example of tei187 / github-discord-webhook
1. Go to this page and download the library: Download tei187/github-discord-webhook 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/ */
tei187 / github-discord-webhook example snippets
return [
// webhook name that will be used in payload URL in GitHub
'sample-webhook' => [
// Discord webhook URL
'url' => 'https://discord.com/api/webhooks/(...)',
// GitHub secret key
'secret' => 'your-github-secret-key',
// Array of repositories to filter through
// May be left empty to listen to all repositories
'repos' => [ 'username/repository-name' ],
]
];