podrecznikomat / php-isbn-api
Client for retrieving book data using ISBN API.
v0.2
2025-09-17 16:51 UTC
Requires
- ext-libxml: *
- ext-simplexml: *
- guzzlehttp/guzzle: ^7.10
Requires (Dev)
- phpunit/phpunit: ^11.5
This package is auto-updated.
Last update: 2026-03-17 17:54:32 UTC
README
A PHP library for retrieving book data by ISBN.
Installation
Requires Composer.
composer require podrecznikomat/php-isbn-api
Requirements
- PHP >= 8.1
- GuzzleHttp
Quick Start
use Podrecznikomat\IsbnApi\Client; use Podrecznikomat\IsbnApi\IsbnEnum; $client = new Client(IsbnEnum::E_ISBN_PL); $book = $client->api()->getBookByIsbn('9788324677658'); // Access book data echo $book->getFullTitle(); echo $book->getAuthorsAsString();
Book Object Structure
- isbn
- title
- subtitle
- authors
- publisher
- publishedDate
- language
- subjects
- edition
API Support list
- e-isbn.pl
- Google Books API
- Open Library API
Tests
To run tests:
vendor/bin/phpunit tests
License
Copyright (c) 2025 Podrecznikomat
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to use, copy, modify, merge, publish, and distribute the Software within their own projects, subject to the following conditions:
- Attribution: Any use of the Software must give appropriate credit, including the name of the original author(s).
- Non-Sale: The Software itself, in source or compiled form, may not be sold as a standalone product.
- Integration: The Software may be used within commercial or non-commercial projects, provided the above conditions are met.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.
Contact
Author: Patryk Molenda Email: patryk.fr.molenda@gmail.com