Download the PHP package vrerabek/vre_trello_cms without Composer
On this page you can find all versions of the php package vrerabek/vre_trello_cms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vrerabek/vre_trello_cms
More information about vrerabek/vre_trello_cms
Files in vrerabek/vre_trello_cms
Package vre_trello_cms
Short Description Extremely simple php CMS using Trello cards as data source
License MIT
Informations about the package 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
-
Install package by running
- 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)
You can get your api key and token here https://trello.com/app-key
How to use
All cards from your board are stored in by calling .
Array key is name of the Card. For example holds description of card in your Trello board named .
‼️ Accessing cards is case-sensitive. So you can't access card named by calling 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
Returns cards of your trello board formatted for easy use. (see example above)
It's recommended to use while developing. It ignores caching so you can see your results in real time.
Sets seconds untill cache expires.
Caching
Really simple caching is implemented by storing two files: and . These files are by default stored in your project root folder (see troubleshooting how to change this directory)
Troubleshooting
.env file directory
By default, library searches for .env file and stores cache in
If you want to store .env file in different folder or the default is not working, you can supply directory to constructor like this
🕛 I made this in one evening and it will deffinitely get better in the future :) 🕛