Skip to content
A simple PHP wrapper for utilising the Trello api.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
src
.editorconfig
.gitattributes
.gitignore
.styleci.yml
.travis.yml
CHANGELOG.md
LICENSE.md
README.md
composer.json
phpcs.xml.dist
phpunit.xml.dist

README.md

trello-php

Latest Version on Packagist Software License Build Status Style CI Code Coverage Total Downloads

A simple PHP wrapper for utilising the Trello api.

Install

Via Composer

$ composer require pxgamer/trello-php

Usage

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);

Change log

Please see CHANGELOG for more information on what has changed recently.

Testing

Testing requires a Trello API key in order to access my public boards.

$ export TRELLO_API_KEY=
$ export TRELLO_ACCESS_TOKEN=
$ composer test

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

Security

If you discover any security related issues, please email security@pxgamer.xyz instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

You can’t perform that action at this time.