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
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);
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.
This package is compliant with PSR-1, PSR-2 and PSR-4. If you notice compliance oversights, please send a patch via pull request.