opendaje / isbndb-client
IsbnDb api client.
0.1.1
2024-04-05 11:53 UTC
Requires
- php: >=8.0 || ^8.2
- ext-json: *
- php-http/cache-plugin: ^2.0
- php-http/client-common: ^2.6
- php-http/discovery: ^1.14
- php-http/httplug: ^2.3
- psr/cache: ^1.0
- psr/http-factory: ^1.0
Requires (Dev)
- dev-main / 0.2.x-dev
- 0.1.1
- 0.1.0
- dev-dependabot/github_actions/shivammathur/setup-php-2.32.0
- dev-dependabot/composer/tools/ecs/main/symplify/easy-coding-standard-12.5.5
- dev-dependabot/composer/tools/rector/main/rector/rector-2.0.5
- dev-dependabot/composer/tools/rector/main/rector/rector-2.0.4
- dev-dependabot/composer/tools/ecs/main/symplify/easy-coding-standard-12.5.4
- dev-dependabot/github_actions/codecov/codecov-action-5
This package is auto-updated.
Last update: 2025-01-06 00:58:19 UTC
README
⚠ Launching early stage releases (0.x.x) could break the API according to Semantic Versioning 2.0. We are using minor for breaking changes.
This will change with the release of the stable 1.0.0
version.
PHP api client for ISBNdb database.
Install
composer require opendaje/isbndb-client // add a PSR Http client composer require http-interop/http-factory-guzzle php-http/guzzle6-adapter
Usage
Register for your API KEY at https://isbndb.com/isbn-database
<?php declare(strict_types=1); use IsbnDbClient\IsbnDbClient; require_once __DIR__ . '/../vendor/autoload.php'; $token = 'YOUR_API_KEY'; $client = new IsbnDbClient(); $client->authenticate($token); try { $response = $client->api('author')->searchAuthors('eric evans'); print_r($response); } catch (Exception $exception){ print_r($exception->getMessage()); }