revolution / laravel-openbd
This package is abandoned and no longer maintained.
No replacement package was suggested.
OpenBD API
2.3.0
2020-08-28 07:10 UTC
Requires
- php: ^7.2||^8.0
- ext-json: *
- guzzlehttp/guzzle: ^6.3||^7.0
- illuminate/support: *
Requires (Dev)
- mockery/mockery: ^1.3
- phpunit/phpunit: ^8.0||^9.0
README
Requirements
- PHP >= 7.2
- Laravel >= 6.0
Installation
Composer
composer require revolution/laravel-openbd
Usage
すべて array が返り値。
use OpenBD; //かなりサイズが大きい $coverage = OpenBD::coverage(); $schema = OpenBD::schema(); //arrayで指定。指定するISBNは10000件まで。openBD側はまとめて取得を推奨している。openBDサイトの配布資料を読んだほうがいい。 $books = OpenBD::get(['978-4-7808-0204-7']);
without Laravel
use Revolution\OpenBD\OpenBD; $openbd = new OpenBD(); $books = $openbd->get(['978-4-7808-0204-7']);
When endpoint changed
$books = OpenBD::endpoint('https://api.openbd.jp/v1/')->get(['978-4-7808-0204-7']);
LICENSE
MIT Copyright kawax