PHPackages                             albreis/trello - 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. albreis/trello

ActiveLibrary[API Development](/categories/api)

albreis/trello
==============

API Trello

1.0.0(4y ago)011MITPHPPHP &gt;=7.4CI failing

Since Dec 16Pushed 4y ago1 watchersCompare

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

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

API Trello
==========

[](#api-trello)

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

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
- Ready for Symfony 5

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

[](#requirements)

- PHP &gt;= 7.4 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 albreis/trello
```

Exemplo
-------

[](#exemplo)

```
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/albreis/albreis/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)

`albreis/trello` is licensed under the MIT License - see the LICENSE file for details

Credits
-------

[](#credits)

- Forked from [cdaguerre/php-trello-api](https://github.com/cdaguerre/php-trello-api)
- 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

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity66

Established project with proven stability

 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 ~790 days

Total

4

Last Release

1791d ago

Major Versions

0.9.3 → 1.0.02021-06-14

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

1.0.0PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/b1e5ddf49ba9616d700a51682fabf613698895fa048f43f833d5940da939f52e?d=identicon)[albreis](/maintainers/albreis)

---

Top Contributors

[![cdaguerre](https://avatars.githubusercontent.com/u/4642448?v=4)](https://github.com/cdaguerre "cdaguerre (76 commits)")[![ogabrielsantos](https://avatars.githubusercontent.com/u/5789536?v=4)](https://github.com/ogabrielsantos "ogabrielsantos (4 commits)")[![albreis](https://avatars.githubusercontent.com/u/37410558?v=4)](https://github.com/albreis "albreis (3 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)")[![matteocacciola](https://avatars.githubusercontent.com/u/28953594?v=4)](https://github.com/matteocacciola "matteocacciola (1 commits)")[![xrip](https://avatars.githubusercontent.com/u/420432?v=4)](https://github.com/xrip "xrip (1 commits)")[![andreybolonin](https://avatars.githubusercontent.com/u/2576509?v=4)](https://github.com/andreybolonin "andreybolonin (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)")

---

Tags

trello

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/albreis-trello/health.svg)

```
[![Health](https://phpackages.com/badges/albreis-trello/health.svg)](https://phpackages.com/packages/albreis-trello)
```

###  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)
