packbackbooks/textbook-prices

This package is abandoned and no longer maintained. No replacement package was suggested.

Making it simple to integrate your application with textbook price apis.

0.1.5 2016-06-02 23:26 UTC

This package is not auto-updated.

Last update: 2021-01-13 17:28:13 UTC


README

Latest Version Software License Build Status Coverage Status Quality Score Total Downloads

This public project is designed to make getting used, new, and rental book prices from the most common textbook sellers easy. The following clients can be accessed with this project:

  • AbeBooks
  • Amazon
  • BookRenter (via CommissionJunction)
  • Cengage (via CommissionJunction)
  • Chegg
  • Skyo (via CommissionJunction)
  • ValoreBooks

Getting prices from a provider

All clients extend the abstract PriceClient class. As an example, get prices from Abe Books for a group of ISBNs is done as follows:

$isbns = [
    // ISBNS
];
$abeBooks = new AbeBooksPriceClient([
    'access_key' => <ABEBOOKS ACCESS KEY>
]);

$prices = $abeBooks->getPricesForIsbns($isbns);

Including in your project

Add the following to your composer.json file:

"require": {
        "packbackbooks/textbook-prices": "~0.1.4"
}

You must also have "minimum-stability": "dev" in your composer.json file so that Composer can fetch dev-master versions of packages.

Notes

This package is compliant with PSR-1, PSR-2 and PSR-4. If you notice compliance oversights, please send a patch via pull request.