pxgamer / trello-php
v1.3.0
2019-04-02 14:40 UTC
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
一个简单的PHP封装,用于利用 Trello API。
安装
通过Composer
$ composer require pxgamer/trello-php
用法
use pxgamer\Trello; $trello = new Trello\Client('api_key', 'access_token');
所有函数都返回关联数组。
// 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);
变更日志
请参阅 CHANGELOG 了解最近更改的详细信息。
测试
测试需要一个 Trello API密钥 以访问我的公开看板。
$ export TRELLO_API_KEY= $ export TRELLO_ACCESS_TOKEN= $ composer test
贡献
请参阅 CONTRIBUTING 和 CODE_OF_CONDUCT 了解详细信息。
安全性
如果您发现任何安全相关的问题,请通过电子邮件 security@pxgamer.xyz 联系,而不是使用问题跟踪器。
致谢
许可证
MIT许可证(MIT)。请参阅 许可证文件 了解更多详细信息。