PHPackages                             horace-velmont/php-trello-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. horace-velmont/php-trello-api

ActiveLibrary[API Development](/categories/api)

horace-velmont/php-trello-api
=============================

Trello API v1 client

0.9.5(7y ago)024MITPHPPHP &gt;=5.4

Since Dec 16Pushed 7y ago1 watchersCompare

[ Source](https://github.com/horace-velmont/php-trello-api)[ Packagist](https://packagist.org/packages/horace-velmont/php-trello-api)[ Docs](https://github.com/horace-velmont/php-trello-api)[ RSS](/packages/horace-velmont-php-trello-api/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (7)Used By (0)

PHP Trello API v1 client
========================

[](#php-trello-api-v1-client)

[![Build Status](https://camo.githubusercontent.com/1ebe94bba3d45c7bd96bcc88efe6e66b9697806d32e7566b7431a80032d5097e/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6364616775657272652f7068702d7472656c6c6f2d6170692e7376673f6272616e63683d6d6173746572267374796c653d666c61742d737175617265)](https://travis-ci.org/cdaguerre/php-trello-api)[![Code Coverage](https://camo.githubusercontent.com/9bd73cc48fc85d56feb417e2fd15aaff4bd0f14bbf82334cd53b638d69dc4037/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6364616775657272652f7068702d7472656c6c6f2d6170692f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/cdaguerre/php-trello-api/?branch=master)[![Code Quality](https://camo.githubusercontent.com/97b20fb4bd77d63d87243519aec579792506f126ad36116ece82106a312a3903/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6364616775657272652f7068702d7472656c6c6f2d6170692e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/cdaguerre/php-trello-api/)[![Packagist](https://camo.githubusercontent.com/9e5a57d07f2db1133366626053ad3624bb4b046950dcfb2ef2f538b25da3ec2a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6364616775657272652f7068702d7472656c6c6f2d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cdaguerre/php-trello-api)

A simple Object Oriented wrapper for the Trello API, written in PHP5.

Uses [Trello API v1](https://trello.com/docs/index.html). The object API is very similar to the RESTful API.

Features
--------

[](#features)

- Follows PSR-0 conventions and coding standards: autoload friendly
- Light and fast thanks to lazy loading of API classes
- Extensively tested

Requirements
------------

[](#requirements)

- PHP &gt;= 5.3.2 with [cURL](http://php.net/manual/en/book.curl.php) extension,
- [Guzzle](https://github.com/guzzle/guzzle) library,
- (optional) [PHPUnit](https://phpunit.de) to run tests.

Installation
------------

[](#installation)

The recommended way is using [composer](http://getcomposer.org):

```
$ composer require horace-velmont/php-trello-api:@dev
```

However, `php-trello-api` follows the PSR-0 naming conventions, which means you can easily integrate `php-trello-api` class loading in your own autoloader.

Basic usage
-----------

[](#basic-usage)

```
use Trello\Client;

$client = new Client();
$client->authenticate('api_key', 'token', Client::AUTH_URL_CLIENT_ID);

$boards = $client->api('member')->boards()->all();
```

The `$client` object gives you access to the entire Trello API.

Advanced usage with the Trello manager
--------------------------------------

[](#advanced-usage-with-the-trello-manager)

This package includes a simple model layer above the API with a nice chainable API allowing following manipulation of Trello objects:

```
use Trello\Client;
use Trello\Manager;

$client = new Client();
$client->authenticate('api_key', 'token', Client::AUTH_URL_CLIENT_ID);

$manager = new Manager($client);

$card = $manager->getCard('547440ad3f8b882bc11f0497');

$card
    ->setName('Test card')
    ->setDescription('Test description')
    ->save();
```

Dispatching Trello events to your app
-------------------------------------

[](#dispatching-trello-events-to-your-app)

The service uses the [Symfony EventDispatcher](https://github.com/symfony/EventDispatcher) component to dispatch events occuring on incoming webhooks.

Take a look at the [Events](https://github.com/cdaguerre/php-trello-api/blob/master/lib/Trello/Events.php) class constants for names and associated event classes.

```
use Trello\Client;
use Trello\Service;
use Trello\Events;

$client = new Client();
$client->authenticate('api_key', 'token', Client::AUTH_URL_CLIENT_ID);

$service = new Service($client);

// Bind a callable to a given event...
$service->addListener(Events::BOARD_UPDATE, function ($event) {
    $board = $event->getBoard();

    // do something
});

// Check if the current request was made by a Trello webhook
// This will dispatch any Trello event to listeners defined above
$service->handleWebhook();
```

Documentation
-------------

[](#documentation)

- Package [API](docs/Api/Index.md)
- Official [API documentation](https://trello.com/docs/index.html).

Contributing
------------

[](#contributing)

Feel free to make any comments, file issues or make pull requests.

License
-------

[](#license)

`php-trello-api` is licensed under the MIT License - see the LICENSE file for details

Credits
-------

[](#credits)

- Largely inspired by the excellent [php-github-api](https://github.com/KnpLabs/php-github-api) developed by the guys at [KnpLabs](http://knplabs.fr)
- Thanks to Trello for the API and documentation.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~273 days

Recently: every ~299 days

Total

6

Last Release

2795d ago

PHP version history (2 changes)0.9.1PHP &gt;=5.3.2

0.9.4PHP &gt;=5.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/ce28f9e7f6a22938cdf26c1fb2c19263d6d255e9e9f77e67a68de6bfa520a08a?d=identicon)[horace\_velmont](/maintainers/horace_velmont)

---

Top Contributors

[![cdaguerre](https://avatars.githubusercontent.com/u/4642448?v=4)](https://github.com/cdaguerre "cdaguerre (76 commits)")[![horace-velmont](https://avatars.githubusercontent.com/u/3744320?v=4)](https://github.com/horace-velmont "horace-velmont (4 commits)")[![ogabrielsantos](https://avatars.githubusercontent.com/u/5789536?v=4)](https://github.com/ogabrielsantos "ogabrielsantos (4 commits)")[![joshk](https://avatars.githubusercontent.com/u/8701?v=4)](https://github.com/joshk "joshk (2 commits)")[![augustohp](https://avatars.githubusercontent.com/u/188613?v=4)](https://github.com/augustohp "augustohp (2 commits)")[![xrip](https://avatars.githubusercontent.com/u/420432?v=4)](https://github.com/xrip "xrip (1 commits)")[![bogdan1993](https://avatars.githubusercontent.com/u/12559198?v=4)](https://github.com/bogdan1993 "bogdan1993 (1 commits)")[![dialogik](https://avatars.githubusercontent.com/u/1260548?v=4)](https://github.com/dialogik "dialogik (1 commits)")[![Joe-brainlabs](https://avatars.githubusercontent.com/u/23475291?v=4)](https://github.com/Joe-brainlabs "Joe-brainlabs (1 commits)")[![andreybolonin](https://avatars.githubusercontent.com/u/2576509?v=4)](https://github.com/andreybolonin "andreybolonin (1 commits)")

---

Tags

trello

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/horace-velmont-php-trello-api/health.svg)

```
[![Health](https://phpackages.com/badges/horace-velmont-php-trello-api/health.svg)](https://phpackages.com/packages/horace-velmont-php-trello-api)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[cdaguerre/php-trello-api

Trello API v2 client

255666.7k3](/packages/cdaguerre-php-trello-api)[trello/trello

PHP Trello API Wrapper

3832.3k1](/packages/trello-trello)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
