semaio / php-trello-api
PHP client for Trello API v1
Installs: 1 435
Dependents: 1
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 4
Open Issues: 0
Requires
- php: ^7.3|^8.0|^8.1|^8.2
- php-http/discovery: ^1.6
- psr/http-client: ^1.0
- psr/http-factory: ^1.0
- psr/http-message: ^1.0
- psr/http-message-implementation: ^1.0
Requires (Dev)
- http-interop/http-factory-guzzle: ^1.0
- php-http/guzzle6-adapter: ^2.0
- phpunit/phpunit: ^9.0|^10.0
- symfony/event-dispatcher: ^4.4|^5.0|^6.0
- symfony/http-foundation: ^4.4|^5.0|^6.0
- symplify/config-transformer: ^10.0
- symplify/easy-coding-standard: ^8.0
Suggests
- symfony/event-dispatcher: Symfony Event Dispatcher for the Trello webhook service.
- symfony/http-foundation: Symfony Http Foundation for the Trello webhook service.
This package is auto-updated.
Last update: 2024-10-30 01:31:56 UTC
README
This library is based on the great php-trello-api but updated and modernized for usage with PHP 7.3+ and a modern version of Guzzle.
Important: Not all components have been thoroughly tested, especially the webhook behaviour.
Installation
The recommended way is using composer:
$ composer require semaio/php-trello-api
Usage
Basic example for card creation:
namespace MyProject;
use Semaio\TrelloApi;
require 'vendor/autoload.php';
$client_builder = new TrelloApi\ClientBuilder();
$client = $client_builder->build( $trello_api_key, $trello_api_token ); // Change $trello_api_key and $trello_api_token
$card = array(
'name' => 'Card subject',
'desc' => 'Card content',
'pos' => '1',
'idList' => $list_id, // Set a list ID
'labels' => array( $label ),
);
$client->getCardApi()->create( $card );
Support
If you encounter any problems or bugs, please create an issue on GitHub.
Contribution
Any contribution to the development of php-trello-api
is highly welcome. The best possibility to provide any code is to open a pull request on GitHub.
License
MIT License. See the LICENSE.txt file for more details.