2017 © Pedro Peláez
 

library trello-php-client

PHP client library for interacting with Trello API

image

silinternational/trello-php-client

PHP client library for interacting with Trello API

  • Thursday, August 11, 2016
  • by fillup
  • Repository
  • 7 Watchers
  • 3 Stars
  • 670 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 4 Versions
  • 1 % Grown

The README.md

⛔️ This repository is no longer maintained. ⛔️

trello-php-client

PHP client to interact with the Trello API., (*1)

We're slowly building out this client as we need the functionality. Initially we only need it for adding accounts to organizations., (*2)

This client is built on top of Guzzle, the PHP HTTP Client. Guzzle has a simple way to create API clients by describing the API in a Swagger-like format without the need to implement every method yourself. So adding support for more Trello APIs is relatively simple. If you want to submit a pull request to add another feature, please do. If you don't know how to do that, ask us and we might be able to add it in for you., (*3)

Trello API Docs

https://trello.com/docs/, (*4)

Trello API Authentication

Trello uses a key/token pair to authenticate for API calls. You can get a key/secret at https://trello.com/1/appKey/generate, (*5)

Install

Installation is simple with Composer. Add "silinternational/trello-php-client": "dev-master" to your composer.json file and update., (*6)

Usage

Example:, (*7)

<?php

use Trello\Organization;

$org = new Organization([
  'key' => '1234567890',
  'token' => 'aasddfffds',
]);

$user = $org->addMember([
    'idOrg' => '5519vgdgh561a4a4b51154123b',
    'email' => 'testuser@domain.org',
    'fullName' => 'Test User',
]);

echo $user['id'];
// 552bfa4aadda3e05254317k

Guzzle Service Client Notes

  • Tutorial on developing an API client with Guzzle Web Services: http://www.phillipshipley.com/2015/04/creating-a-php-nexmo-api-client-using-guzzle-web-service-client-part-1/
  • Presentation by Jeremy Lindblom: https://speakerdeck.com/jeremeamia/building-web-service-clients-with-guzzle-1
  • Example by Jeremy Lindblom: https://github.com/jeremeamia/sunshinephp-guzzle-examples
  • Parameter docs in source comments: https://github.com/guzzle/guzzle-services/blob/master/src/Parameter.php

The Versions

11/08 2016

dev-master

9999999-dev

PHP client library for interacting with Trello API

  Sources   Download

MIT

The Requires

 

The Development Requires

trello

11/08 2016

dev-develop

dev-develop

PHP client library for interacting with Trello API

  Sources   Download

MIT

The Requires

 

The Development Requires

trello

11/08 2016

0.1.1

0.1.1.0

PHP client library for interacting with Trello API

  Sources   Download

MIT

The Requires

 

The Development Requires

trello

06/01 2016

0.1.0

0.1.0.0

PHP client library for interacting with Trello API

  Sources   Download

MIT

The Requires

 

The Development Requires

trello