PHP code example of leonjza / php-gitlab-jabberhook
1. Go to this page and download the library: Download leonjza/php-gitlab-jabberhook 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/ */
leonjza / php-gitlab-jabberhook example snippets
// File hook.php
ents('php://input');
$message = new \GitlabXMPPHook\Read($input);
$message = $message->parse();
$jabber = new \GitlabXMPPHook\Client();
$jabber->setOptions('server.local', 5222, '[email protected]', 'password');
$jabber->call('message')->send($message, '[email protected]');