PHPackages                             vrerabek/vre\_trello\_cms - 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. vrerabek/vre\_trello\_cms

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

vrerabek/vre\_trello\_cms
=========================

Extremely simple php CMS using Trello cards as data source

v1.1(5y ago)07[2 PRs](https://github.com/vrerabek/vre_trello_cms/pulls)MITPHP

Since Jul 30Pushed 3y ago1 watchersCompare

[ Source](https://github.com/vrerabek/vre_trello_cms)[ Packagist](https://packagist.org/packages/vrerabek/vre_trello_cms)[ RSS](/packages/vrerabek-vre-trello-cms/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (2)Dependencies (2)Versions (5)Used By (0)

vre\_trello\_cms
================

[](#vre_trello_cms)

vre\_trello\_cms is extremely simple PHP Library, which let's you get content for your website from your Trello Board.

Installation
============

[](#installation)

- Install package by running `composer require vrerabek/vre_trello_cms`
- Create .env file in your project root folder (for any other direcory, check Troubleshooting section) and insert following environmental variables (or append this to your .env file if you are already using one)

```
TRELLO_API_KEY="your_trello_api_key_goes_here"
TRELLO_API_TOKEN="your_trello_api_token_goes_here"
TRELLO_BOARD_URL="your_trello_board_url_goes_here"

```

*You can get your api key and token here *

How to use
==========

[](#how-to-use)

```
require __DIR__ . '/vendor/autoload.php';

try {
    $vreClient = new \Vrerabek\VreClient();
    $vreClient->setDev(false);
    $vreClient->setCacheSeconds(600);
    $cards = $vreClient->getCards();
    echo $cards['title'];

} catch (Exception $e) {

    echo $e->getMessage();

}
```

All cards from your board are stored in `Array` by calling `->getCards()`.

Array key is name of the Card. For example `$cards['title']` holds description of card in your Trello board named `title`.

‼️ Accessing cards is case-sensitive. So you can't access card named `Title` by calling `$cards['title']` and vice-versa!

‼️ If there are more cards with the same name, only one (the newest) will be available. It's planned to improve this in future.

Methods
-------

[](#methods)

`->getCards()` Returns cards of your trello board formatted for easy use. (see example above)

```
$vreClient->getCards();
```

`->setDev(true)` It's recommended to use while developing. It ignores caching so you can see your results in real time.

```
$vreClient->setDev(true);
```

`->setCacheSeconds(60)` Sets seconds untill cache expires.

```
$vreClient->setCacheSeconds(60);
```

Caching
-------

[](#caching)

Really simple caching is implemented by storing two files: `content.json` and `lastCache.json`. These files are by default stored in your project root folder (see troubleshooting how to change this directory)

Troubleshooting
---------------

[](#troubleshooting)

**.env file directory**

By default, library searches for .env file and stores cache in `$_SERVER['DOCUMENT_ROOT']`

If you want to store .env file in different folder or the default is not working, you can supply directory to `VreClient` constructor like this

`$vreClient = new \Vrerabek\VreClient(dirname(__FILE__ ) . '/src');`

🕛 *I made this in one evening and it will deffinitely get better in the future :)* 🕛

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

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

Total

2

Last Release

2106d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/27458981?v=4)[Vojtech Rerabek](/maintainers/vrerabek)[@vrerabek](https://github.com/vrerabek)

### Embed Badge

![Health badge](/badges/vrerabek-vre-trello-cms/health.svg)

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

###  Alternatives

[blair2004/nexopos

The Free Modern Point Of Sale System build with Laravel, TailwindCSS and Vue.js.

1.2k2.3k](/packages/blair2004-nexopos)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[dhlparcel/magento2-plugin

DHL Parcel plugin for Magento 2

11180.5k2](/packages/dhlparcel-magento2-plugin)

PHPackages © 2026

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