2017 © Pedro Peláez
 

library google-books

Simple Google Books API client

image

antoineaugusti/google-books

Simple Google Books API client

  • Friday, February 3, 2017
  • by AntoineAugusti
  • Repository
  • 1 Watchers
  • 3 Stars
  • 206 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 6 Versions
  • 6 % Grown

The README.md

StyleCI Status Build Status Coverage Status Quality Score Software License Latest Version, (*1)

Google Books

A simple client for the Google Books API, with limited functionality for now., (*2)

Installation

Either PHP 5.5+ or HHVM 3.6+ are required., (*3)

To get the latest version, simply require the project using Composer:, (*4)

$ composer require antoineaugusti/google-books

Instead, you may of course manually update your require block and run composer update if you want., (*5)

Usage

Getting information for a book thanks to its ISBN 10 or ISBN 13 number:, (*6)

<?php

require 'vendor/autoload.php';

use AntoineAugusti\Books\Fetcher;
use GuzzleHttp\Client;

$client = new Client(['base_uri' => 'https://www.googleapis.com/books/v1/']);
$fetcher = new Fetcher($client);
$book = $fetcher->forISBN('9780142181119');

var_dump($book);
// class AntoineAugusti\Books\Book#32 (11) {
//   public $title => string(15) "Average Is Over"
//   public $subtitle => string(55) "Powering America Beyond the Age of the Great Stagnation"
//   public $authors =>
//   array(1) {
//     [0] => string(11) "Tyler Cowen"
//   }
//   public $printType => string(4) "BOOK"
//   public $pageCount => int(290)
//   public $publisher => string(5) "Plume"
//   public $publishedDate =>
//   class DateTime#33 (3) {
//     public $date => string(26) "2014-08-26 00:00:00.000000"
//     public $timezone_type => int(3)
//     public $timezone => string(13) "Europe/London"
//   }
//   public $averageRating => double(3)
//   public $thumbnail => string(100) "http://books.google.fr/bookscontent?id=-Zp_ngEACAAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api"
//   public $language => string(2) "en"
//   public $categories =>
//   array(1) {
//     [0] => string(20) "Business & Economics"
//   }
// }

License

This package is licensed under The MIT License (MIT)., (*7)

The Versions

03/02 2017

dev-master

9999999-dev https://github.com/AntoineAugusti/google-books

Simple Google Books API client

  Sources   Download

MIT

The Requires

 

The Development Requires

google book isbn books

03/02 2017

v0.3

0.3.0.0 https://github.com/AntoineAugusti/google-books

Simple Google Books API client

  Sources   Download

MIT

The Requires

 

The Development Requires

google book isbn books

23/10 2016

0.2.1

0.2.1.0 https://github.com/AntoineAugusti/google-books

Simple Google Books API client

  Sources   Download

MIT

The Requires

 

The Development Requires

google book isbn books

23/10 2016

dev-optional-publised-date

dev-optional-publised-date https://github.com/AntoineAugusti/google-books

Simple Google Books API client

  Sources   Download

MIT

The Requires

 

The Development Requires

google book isbn books

28/05 2016

0.2

0.2.0.0 https://github.com/AntoineAugusti/google-books

Simple Google Books API client

  Sources   Download

MIT

The Requires

 

The Development Requires

google book isbn books

28/05 2016

0.1

0.1.0.0 https://github.com/AntoineAugusti/google-books

Simple Google Books API client

  Sources   Download

MIT

The Requires

 

The Development Requires

google book isbn books