Download the PHP package alessandrominoccheri/trello-cycle-time without Composer
On this page you can find all versions of the php package alessandrominoccheri/trello-cycle-time. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alessandrominoccheri/trello-cycle-time
More information about alessandrominoccheri/trello-cycle-time
Files in alessandrominoccheri/trello-cycle-time
Package trello-cycle-time
Short Description A library to get cycle time of trello cards
License MIT
Homepage https://github.com/AlessandroMinoccheri/trello-cycle-time
Informations about the package trello-cycle-time
Trello Cycle Time
This library is a PHP library to get cycle time of cards from a Trello board. With this tool you can seen how many times a card take to pass from a state to another state into the board.
Installation
You can install this package via composer like this:
How to use it?
To use this library you need to have:
- Trello apikey
- Trello token
- Trello boardId to analyze
All Cards
To get all cards transitions column you can use this code for example
The response of is an array that contains some information for example:
In this case you can see that this card takes 1 day to pass from Todo to Doing and 6 days to pass from Doing to Done.
Specific card transition
To get only a specific card transition you can obtain it using its id like this:
The response of is an array that contains some information only of that card for example:
In this case you can see that this card takes 1 day to pass from Todo to Doing and 6 days to pass from Doing to Done.
Filters
You can filter column cards with some parameters. Here are some possible filters
From column to column
if you want to know only how much time alla cards or a single card passed from a column to column,
To do this you can use this code:
or for a specific card:
From date to date
if you want to know only how much time alla cards or a single card passed filtered by from a date or to a date or together,
To do this you can use this code:
or for a specific card:
Contributing
Every contribution is welcome, remember to add tests and use psalm and phpstan: