remig26 / php-openlibrary
There is no license information available for the latest version (0.0.1) of this package.
API Wrapper of OpenLibrary
0.0.1
2025-05-19 22:08 UTC
Requires
- guzzlehttp/guzzle: ^7.0
Requires (Dev)
- pestphp/pest: ^3.8
README
A PHP client library for the Open Library API.
This library aims to facilitate the use of existing Open Library for READ-ONLY. It DOES NOT provide methods that requires authentication (create or edit works for example).
Installation
To install the package, use composer:
composer require remig26/php-openlibrary
Usage
<?php use PhpOpenlibrary\OpenLibrary; $api = new OpenLibrary(); $books = $api->searchBook("Name of a book"); $author = $api->findAuthor("OL234664A"); // Author's OLID $authorsBooks = $api->booksForAuthor("OL234664A"); // Advanced search $books = $api->searchBook("title:The,place:New York")
Testing
To run test cases (from the php-openlibrary directory):
./vendor/bin/pest