PHP code example of alessandrominoccheri / trello-cycle-time
1. Go to this page and download the library: Download alessandrominoccheri/trello-cycle-time 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/ */
alessandrominoccheri / trello-cycle-time example snippets
use TrelloCycleTime\Client\TrelloApiClient;
$client = new TrelloApiClient('apikey', 'token');
$board = new TrelloBoard($client, 'board-id');
$transitions = $board->getTransitions();
var_dump($transitions);
use TrelloCycleTime\Client\TrelloApiClient;
$client = new TrelloApiClient('apikey', 'token');
$board = new TrelloBoard($client, 'board-id');
$transitions = $board->getCardTransitions('cardId');
var_dump($transitions);
$transitions = $board->getTransitions(['fromColumn' => 'todo', 'toColumn' => 'done']);
$transitions = $board->getCardTransitions('cardId', ['fromColumn' => 'todo', 'toColumn' => 'done']);
$transitions = $board->getTransitions(['fromDate' => '2019-01-01', 'toDate' => '2019-12-31']);
$transitions = $board->getTransitions(['fromDate' => '2019-01-01']);
$transitions = $board->getTransitions(['toDate' => '2019-12-31']);
$transitions = $board->getCardTransitions(['fromDate' => '2019-01-01', 'toDate' => '2019-12-31']);