PHP code example of hexis-hr / deployer-fanfare

1. Go to this page and download the library: Download hexis-hr/deployer-fanfare 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/ */

    

hexis-hr / deployer-fanfare example snippets




set('repository', '[email protected]:acme/widget.git');
set('fanfare_webhook', 'https://hooks.slack.com/services/…');
set('fanfare_issue_url_template', 'https://acme.atlassian.net/browse/{key}');

before('deploy:update_code', 'fanfare:revision');
after('deploy:success',       'fanfare:notify');
after('deploy:failed',        'fanfare:notify:failure');

// YouTrack
set('fanfare_issue_url_template', 'https://youtrack.example.com/issue/{key}');

// Jira Cloud
set('fanfare_issue_url_template', 'https://acme.atlassian.net/browse/{key}');

// Linear
set('fanfare_issue_url_template', 'https://linear.app/acme/issue/{key}');

// GitHub Issues — adjust the regex to match #123 instead of ROS-9
set('fanfare_issue_url_template', 'https://github.com/acme/widget/issues/{key}');
set('fanfare_ticket_pattern',     '/#(\d+)/');