PHP code example of cjrasmussen / trello-upcoming-notification

1. Go to this page and download the library: Download cjrasmussen/trello-upcoming-notification 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/ */

    

cjrasmussen / trello-upcoming-notification example snippets


use cjrasmussen\SlackApi\SlackApi;
use cjrasmussen\TrelloApi\TrelloApi;
use cjrasmussen\TrelloUpcomingNotification\TrelloUpcomingNotification;

$trello_lists = [
	'123456789012345678901234', // In Progress
	'098765432109876543210987', // Not Started
];
$trello_ignore_label = 'asdfghjklpoiuytrewqzxcvb';

$trello = new TrelloApi($key, $token);
$slack = new SlackApi($slack_webhook_url);

$trelloNotification = new TrelloUpcomingNotification($trello, $slack);
$trelloNotification->buildNotification($trello_lists, $trello_ignore_label)->sendNotification();