### Installing php-pcbis via Composer Source: https://github.com/fundevogel/php-pcbis/blob/main/README.md Command to install the php-pcbis library using Composer package manager. ```text composer require fundevogel/php-pcbis ``` -------------------------------- ### Configuring API Testing Endpoint in PHP Source: https://github.com/fundevogel/php-pcbis/blob/main/README.md Shows how to initialize the API wrapper and set the testing URL for development purposes. ```php # Initialize API wrapper $api = new Webservice($credentials); # Use 'testing' URL $api->url = 'https://wstest.pcbis.de/ws30'; ``` -------------------------------- ### Basic Usage of php-pcbis Library in PHP Source: https://github.com/fundevogel/php-pcbis/blob/main/README.md Demonstrates how to initialize the Pcbis object, load a book by ISBN, export data, access specific information, download cover, and check availability. Includes error handling. ```php load('978-3-522-20255-8'); # (1) .. export its bibliographic data $data = $book->export(); # (2) .. access specific information echo $book->title(); # (3) .. download its cover if ($book->downloadCover()) { echo 'Cover downloaded!'; } # (4) .. query its OLA status if ($book->isAvailable()) { # ... } } catch (Exception $e) { echo 'Error: ' . $e->getMessage(), "\n"; } ``` -------------------------------- ### Implementing Caching with php-pcbis in PHP Source: https://github.com/fundevogel/php-pcbis/blob/main/README.md Demonstrates how to implement a caching mechanism when using the php-pcbis library to store and retrieve book data. ```php require_once('vendor/autoload.php'); use Fundevogel\Pcbis\Pcbis; $obj = new Pcbis([/* ... */]); $ean = 'identifier'; if ($myCache->has($ean)) { $data = $myCache->get($ean); $product = $obj->load($data); } else { $product = $obj->load($ean); $myCache->set($ean, $product->data); } ``` -------------------------------- ### Kirby CMS Package License Declaration in YML Source: https://github.com/fundevogel/php-pcbis/blob/main/src/Helpers/README.md YAML license declaration for KirbyCMS classes in the src/Helpers directory, indicating MIT licensing and attribution to Bastian Allgeier. ```yml package: KirbyCMS author: Bastian Allgeier link: https://getkirby.com copyright: Bastian Allgeier license: https://opensource.org/licenses/MIT ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.