A PHP wrapper for working with the Trello API.
- PHP 5.3.0 or greater
- cURL Libarary
- Trello API developer key (can be registered at https://trello.com/1/appKey/generate)
- OAuth for php (included in this repo)
This package can be installed as a stand alone or with composer.
If using Composer add the following to your project composer.json:
"require": {
...
"tschwemley/trello-php-api": "dev-master"
}
Finally, update Composer:
composer update
After obtaining an authentican token you may make authenticated calls by using the following method:
$trello = new tschwemley\trello\Trello(array(
'clientKey' => CLIENT_KEY_HERE
'clientSecret' => CLIENT_SECRET_HERE
);
$result = $trello->apiCall(array('boards', '4d5ea62fd76aa1136000000c'));
For more detailed examples about obtaining OAuth verification please check the OAuth examples under the examples folder.
If you need help please contact me at [email protected]