2017 © Pedro Peláez
 

library goodreads-api

A quick PHP wrapper class for the GoodReads API.

image

bksy/goodreads-api

A quick PHP wrapper class for the GoodReads API.

  • Wednesday, December 13, 2017
  • by boukeversteegh
  • Repository
  • 1 Watchers
  • 0 Stars
  • 164 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 16 Forks
  • 0 Open issues
  • 1 Versions
  • 12 % Grown

The README.md

goodreads-api

A quick PHP wrapper class for the GoodReads API., (*1)

Disclaimer

This is something I hacked together quickly, it isn't beautiful, and as you'll see I only implemented one API endpoint (the only one I needed). However it's a good starting point, and from a cursory glance implementing other methods wouldn't be particularly tricky. Caching support is also baked in., (*2)

Please also bear in mind the GoodReads API itself isn't great (some methods for example only support XML!), you can read/comment on that in their forums., (*3)

Requirements

  • PHP 5.3.x or higher
  • cURL
  • GoodReads API key

Available methods

Usage

  1. Include class
  2. Initialise wrapper $api = new GoodReads('PUT YOUR API KEY HERE', 'writable directory for caching');
  3. Call a method $data = $api->getLatestReads(4148474);

License

Simplified BSD (included)., (*4)

Changes

2016-05-13 Victor Davis * Added LIBXML_NOCDATA arg to simplexml_load_string to capture CDATA in returned XML * Added 2 endpoints: author.show & user.show, (*5)

The Versions

13/12 2017

dev-master

9999999-dev

A quick PHP wrapper class for the GoodReads API.

  Sources   Download

MIT