packbackbooks / textbook-prices
Making it simple to integrate your application with textbook price apis.
Requires
- php: >=5.5.0
- croscon/commissionjunction-php: ^1.0
- exeu/apai-io: ^1.10
- guzzlehttp/guzzle: ~6.0
Requires (Dev)
- mockery/mockery: >=0.9.4
- phpunit/php-code-coverage: ~2.0
- phpunit/phpunit: >=4.6
This package is not auto-updated.
Last update: 2021-01-13 17:28:13 UTC
README
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.