PHP Classes

PHP Google Books API: Search for books using Google Books API

Recommend this page to a friend!
  Info   View files Example   Screenshots Screenshots   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 187 All time: 8,592 This week: 225Up
Version License PHP version Categories
cgooglebooksapi 1.0.4BSD License5PHP 5, Searching, Web services
Description 

Author

This class can search for books using Google Books API.

It takes an array of optuons and sends HTTP requests to Google Books API Web server using either file_get_contents or curl.

The class retrieves and decodes the results and store it in an array that lists the found books title, authors, publisher, categories, ISBN and thumbnail URL.

The search parameters include the book title, categories, start index, results limit, and get book details.

Innovation Award
PHP Programming Innovation award nominee
October 2016
Number 7


Prize: One downloadable copy of Komodo IDE
Google Books is a well known service provided by Google that indexes a large number of books that were scanned, so users can search them by title, author, and even their contents.

This class provides an interface to the Google Books API to perform searches for books indexed on Google Books.

Manuel Lemos
Picture of Mohammed Asad
  Performance   Level  
Name: Mohammed Asad <contact>
Classes: 2 packages by
Country: India India
Age: 34
All time rank: 3415226 in India India
Week rank: 496 Up44 in India India Up
Innovation award
Innovation award
Nominee: 2x

Details
This class is created in a good intention to fetch google books api without using any google auth credentials Hence, its accuracy is 70%. Well, it also has limitations based on the google,as it can fetch only 40 at a time.
Screenshots  
  • SimpleBookSearchForm
  Files folder image Files  
File Role Description
Files folder imagecgooglebooksAPi (2 files, 2 directories)
Accessible without login Plain text file README.txt Doc. Documentation

  Files folder image Files  /  cgooglebooksAPi  
File Role Description
Files folder imagesrc (1 file)
Files folder imagetests (2 files)
  Accessible without login Plain text file LICENSE Lic. License text
  Accessible without login Plain text file README.txt Doc. Documentation

  Files folder image Files  /  cgooglebooksAPi  /  src  
File Role Description
  Plain text file cgoogleBooksApi.class.php Class Class source

  Files folder image Files  /  cgooglebooksAPi  /  tests  
File Role Description
  Accessible without login Plain text file simpleFetch.php Example Example script
  Accessible without login Plain text file simpleWebForm.php Example Example script

Downloadcgooglebooksapi-2016-12-15.zip 37KB
Downloadcgooglebooksapi-2016-12-15.tar.gz
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
cURL Download .zip .tar.gz incase if their file_get_contents does not work Optional
 Version Control Unique User Downloads Download Rankings  
 85%
Total:187
This week:0
All time:8,592
This week:225Up