Give Bookscanner a barcode or ISBN number, look it up via the OpenLibrary API, and then return you a nice PHP array with relevant details.

Works with 10-digit or 13-digit ISBNs. It will happily take input from a text field that has been populated by a standard handheld barcode scanner. It will clean it up a little, validate the ISBN with its checksum, and then send a request to the excellent OpenLibrary API via cURL. It will parse the response, and it will return you a PHP array with all the available information.

For fields with more that one element, e.g., a book with several authors, the field will be returned as a comma-separated string.

Installation via Packagist:

$ composer require imonroe/bookscanner


$isbn_data = imonroe\bookscanner\Bookscanner::get_isbn_data($isbn_string); 

Check out the source, fork it, use it for whatever you like.