2017 © Pedro Peláez
 

library bggxmlapi2

BoardGameGeek.com XML API2 - PHP Client Library

image

nataniel/bggxmlapi2

BoardGameGeek.com XML API2 - PHP Client Library

  • Tuesday, March 13, 2018
  • by nataniel
  • Repository
  • 3 Watchers
  • 2 Stars
  • 115 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 2 Open issues
  • 5 Versions
  • 6 % Grown

The README.md

bggxmlapi2

PHP Client Library for BoardGameGeek.com XML API2, (*1)

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());
}

The Versions

13/03 2018

dev-master

9999999-dev

BoardGameGeek.com XML API2 - PHP Client Library

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Artur Jedlinski

13/03 2018

v1.1.2

1.1.2.0

BoardGameGeek.com XML API2 - PHP Client Library

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Artur Jedlinski

24/01 2018

v1.1.1

1.1.1.0

BoardGameGeek.com XML API2 - PHP Client Library

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Artur Jedlinski

08/06 2017

v1.1.0

1.1.0.0

BoardGameGeek.com XML API2 - PHP Client Library

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Artur Jedlinski

01/06 2017

v1.0.0

1.0.0.0

BoardGameGeek.com XML API2 - PHP Client Library

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Artur Jedlinski