Download the PHP package aalfiann/ebook-api-php without Composer
On this page you can find all versions of the php package aalfiann/ebook-api-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aalfiann/ebook-api-php
More information about aalfiann/ebook-api-php
Files in aalfiann/ebook-api-php
Package ebook-api-php
Short Description A PHP wrapper class to get data ebook from Google Book and GoodReads API.
License MIT
Informations about the package ebook-api-php
EbookAPI
A PHP wrapper class to get the ebook information data from Google Book or GoodReads API.
Installation
Install this package via Composer.
Usage to use Google Book API
This is the basic to search books.
Get Books start with spesific parameter.
Get book by title
Get book by author
Get book by subject name
Get book by publisher name
Get book by ID
Get Bookshelves
If you want to see the response
If you want to count the result items
If you want to see the debug response
Usage to use GoodReads API
Example how to search books
To search books with GoodReads
, you must send a request to https://www.goodreads.com/search/index.xml
and there is four parameters required, it is key
,q
,page
and search[field]
. Visit here for more information.
Example how to manual add param
If there is new feature released by Goodreads, of course the shortcut method of the new parameter is not available in the class.
So you can use addParam($name,$value)
function.
For example we want to Get a user's review for a given book
For more information about path()
and other , You have to read the GoodReads API Documentation, because this GoodReads
class is a wrapper only.
GoodReadsMethod class
GoodReadsMethod
class is the simple way to make a communication with GoodReads API. This class is contains the method which is often to use or general method only.
This is how to use with GoodReadsMethod
class
Limitation:
- This library is only to get the public data information from
Google Book
orGoodReads
API, so there is no OAuth / Authorization implemented in this library. - This library does not include with cache. You should cache the results, because
Google
andGoodReads
has LIMIT RATE and will block your IP address server if too many request. GoodReadsMethod
class is unstable, maybe code will change in the future depends onGoodReads
.
All versions of ebook-api-php with dependencies
aalfiann/parallel-request-php Version ^1.0
aalfiann/json-class-php Version ^1.0
aalfiann/event-locker-php Version ^1.0