rsahlstrom / shelf

A PHP project that simplifies working with the BoardGameGeek API
1 stars 0 forks source link

Access duration of and number of players of games #11

Closed jschouwstra closed 7 years ago

jschouwstra commented 7 years ago

Hi Janiv, first off, thanks a lot for making the package to access the bgg API in an easier way! I have a question rather than an issue, is there a way to get the duration and number of players for the specified game?

screenshot_4

rsahlstrom commented 7 years ago

Here's an example XML:

https://www.boardgamegeek.com/xmlapi2/thing?id=13

You can see in there we have minplayers and maxplayers. We also have minplaytime and maxplaytime.

To get this data from your game entity, you can call $game->getMinPlayers() or $game->getMaxPlayers() as well as $game->getMinPlayTime() or $game->getMaxPlayTime().