2017 © Pedro Peláez
 

library trello

PHP Trello API Wrapper

image

trello/trello

PHP Trello API Wrapper

  • Monday, October 5, 2015
  • by ashwinks
  • Repository
  • 1 Watchers
  • 36 Stars
  • 8,119 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 11 Forks
  • 3 Open issues
  • 3 Versions
  • 24 % Grown

The README.md

PHP-Trello-SDK

A PHP wrapper for the Trello API, (*1)

This is still under heavy development and is not recommended for production use. Many methods are missing as this is just scaffolding for now., (*2)

Usage

Instantiate the client, (*3)

$client = new \Trello\Client($api_key);

Get the authroization url to redrect the user to, (*4)

$url = $client->getAuthorizationUrl('some app name', 'http://myapp.com/returnurl'));
header("Location: {$url}");

Set the access token, (*5)

$client->setAccessToken($returned_token);

Get organizations, (*6)

$member_obj = new \Trello\Model\Member($client);
$member_obj->setId('userid');
$orgs = $member_obj->getOrganizations();

Get a board, (*7)

$board = $client->getBoard($board_id);

Another way to get a board (or any object), (*8)

$board = new \Trello\Model\Board($client);
$board->setId($board_id);
$board = $board->get();

Get all cards for a board, (*9)

$cards = $board->getCards();

Get a specific card for this board, (*10)

$card = $board->getCard($card_id);

Update the card, (*11)

$card->name = 'some new name';
$card->save();

Create a new card (or any object), (*12)

$card = new \Trello\Model\Card($client);
$card->name = 'some card name';
$card->desc = 'some card desc';
$card->idList = $list_id;
$card->save();

The Versions

05/10 2015

dev-master

9999999-dev https://github.com/ashwinks/Trello-API-PHP-Wrapper.git

PHP Trello API Wrapper

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

api trello trello api wrapper

03/03 2014

0.1.1

0.1.1.0 https://github.com/ashwinks/Trello-API-PHP-Wrapper.git

PHP Trello API Wrapper

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

api trello trello api wrapper

10/01 2014

0.1

0.1.0.0 https://github.com/ashwinks/Trello-API-PHP-Wrapper.git

PHP Trello API Wrapper

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

api trello trello api wrapper