PHPackages                             kjgcoop/trello-label-package - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. kjgcoop/trello-label-package

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

kjgcoop/trello-label-package
============================

Library to get Trello tasks organized by label instead of by board

02PHP

Since Jul 25Pushed 6y agoCompare

[ Source](https://github.com/kjgcoop/trello-label-package)[ Packagist](https://packagist.org/packages/kjgcoop/trello-label-package)[ RSS](/packages/kjgcoop-trello-label-package/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

trello-label-package
====================

[](#trello-label-package)

Trello's labels are per board, so you can't see all the tasks with a given label. Rather than hopping between boards, you can use this script to loop through the labels.

Getting Started
---------------

[](#getting-started)

```
// Give the object enough information to connect to Trello
$batch = new TrelloLabelBatch([Trello API key], [Trello API token], [Trello user whose data you're interested in]);

// Grab the data
$batch->populate();

// You may now work with the data.

foreach ($batch->get_labels() as $label) {
    foreach ($label->get_cards() as $card) {
        // Whatever you want to do.
    }
}

```

The script assumes that you only want to deal in one user's boards.

Notes on Data
-------------

[](#notes-on-data)

A populated batch represents an array of all your labels, each containing the relevant cards.

- A TrelloLabel object has a color, a name and a list of cards
- A TrelloCard object has a name, board name and list of labels.

Any given card may appear any number of times.

- If a card has no labels, it won't appear in the data structure. While Trello boards have a list of its labels, this generates its list by looping through existing cards.
- If a card has more than one label applied, the card will appear in memory once per label.

Prerequisites
-------------

[](#prerequisites)

PHP and the PHP Curl Extension and Composer. All the other dependencies are handled by Composer.

### Built With

[](#built-with)

- [cdaguerre/php-trello-api](https://github.com/cdaguerre/php-trello-api) - The Trello API class this code relies on. Thanks, cdaguerre!

License
-------

[](#license)

This is licensed under the [GPL License](https://www.gnu.org/licenses/gpl-3.0.html)

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/4ea10a89e7bd2482c73703ab0147e17f6cc5ecbc4fabe973e098a5f2ef8d49a4?d=identicon)[kjgcoop](/maintainers/kjgcoop)

---

Top Contributors

[![kjgcoop](https://avatars.githubusercontent.com/u/51257881?v=4)](https://github.com/kjgcoop "kjgcoop (6 commits)")

### Embed Badge

![Health badge](/badges/kjgcoop-trello-label-package/health.svg)

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

PHPackages © 2026

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