PHP code example of alsvanzelf / debby
1. Go to this page and download the library: Download alsvanzelf/debby 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/ */
alsvanzelf / debby example snippets
sh
composer | { cat; echo "0 8 * * * php /www/vendor/alsvanzelf/debby/notify.php repo token"; } | crontab -
sh
0 8 * * * php /var/www/vendor/alsvanzelf/debby/notify.php /var/www/debby.json
php
$options = [
'notify_github' => [
'repository' => 'example/project',
'token' => 'personal access token',
],
];
$debby = new debby\debby($options);
$packages = $debby->check();
$debby->notify($packages);