nataniel/bggxmlapi2
最新稳定版本:v1.1.5
Composer 安装命令:
composer require nataniel/bggxmlapi2
包简介
BoardGameGeek.com XML API2 - PHP Client Library
README 文档
README
PHP Client Library for BoardGameGeek.com XML API2
Installation
composer require nataniel/bggxmlapi2
Usage
// initialize client $client = new \Nataniel\BoardGameGeek\Client(); // download information about "Dixit" // https://boardgamegeek.com/boardgame/39856/dixit $thing = $client->getThing(39856, true); var_dump($thing->getName()); var_dump($thing->getYearPublished()); var_dump($thing->getBoardgameCategories()); var_dump($thing->getRatingAverage()); // ... // download information about user // https://boardgamegeek.com/user/Nataniel $user = $client->getUser('nataniel'); var_dump($user->getAvatar()); var_dump($user->getCountry()); // search for a game $results = $client->search('Domek'); echo count($results); $things = []; foreach ($result as $item) { var_dump($item->getName()); $things[] = $client->getThing($item->getId()); }
统计信息
- 总下载量: 4.12k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 25
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-05-31