janiv / shelf
BoardGameGeek API 2.0 Wrapper for PHP
Installs: 594
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
pkg:composer/janiv/shelf
Requires
- php: >=5.3.3
- guzzle/guzzle: ~3.7
Requires (Dev)
- phpunit/php-invoker: ~1.1.0
- phpunit/phpunit: 3.7.*
- squizlabs/php_codesniffer: ~1.5
This package is not auto-updated.
Last update: 2025-10-06 20:50:30 UTC
README
A PHP Library to work with the Board Game Geek XML API2 through Guzzle and Entities
Example
<?php include 'vendor/autoload.php'; $client = Shelf\Client::factory(); // Getting a single game $response = $client->getBoardgame( array('id' => 13) ); $game = $response->getBoardgame(); echo '<p>' . $game->getPrimaryName()->getValue() . '</p>'; // Getting a collection of games $response = $client->getBoardgames( array('id' => array(12, 13, 34119)) ); $games = $response->getBoardgames(); foreach ($games as $game) { echo '<p>' . $game->getPrimaryName()->getValue() . '</p>'; }