pxgamer/trello-php

This package is abandoned and no longer maintained. The author suggests using the stevenmaguire/trello-php package instead.

A simple PHP wrapper for utilising the Trello api.

v1.3.0 2019-04-02 14:40 UTC

This package is auto-updated.

Last update: 2022-02-01 13:05:01 UTC


README

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.