A simple PHP wrapper for utilising the Trello api.
Via Composer
$ composer require pxgamer/trello-php
use pxgamer\Trello;
$trello = new Trello\Client('api_key', 'access_token');
All functions return associative arrays.
// Returns a PHP array of boards that a user is a member of
$trello->getBoardsByUser($username);
// Returns an array of lists that are available on a board
$trello->getListsFromBoard($board_id);
// Returns an array of cards that are in a list
$trello->getCardsFromList($list_id);
// Returns an array of data about a specific card
$trello->getCard($card_id);
// Adds a card (requires a list ID to be specified)
// Example Content:
$content = [
'name' => 'Card Title',
'desc' => 'Card Description... La la la.',
'idList' => 'List Id',
'pos' => 'bottom',
'due' => '2017-01-27',
];
$trello->addCard($content);
Please see CHANGELOG for more information on what has changed recently.
Testing requires a Trello API key in order to access my public boards.
$ export TRELLO_API_KEY=
$ export TRELLO_ACCESS_TOKEN=
$ composer test
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
If you discover any security related issues, please email security@pxgamer.xyz instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.