pxgamer / trello-php
A simple PHP wrapper for utilising the Trello api.
Fund package maintenance!
owenvoke
ecologi.com/owenvoke?gift-trees
Requires
- php: ^7.2
- ext-curl: *
- ext-json: *
Requires (Dev)
- phpunit/phpunit: ^8.0
- squizlabs/php_codesniffer: ^3.0
This package is auto-updated.
Last update: 2022-02-01 13:05:01 UTC
README
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.