2017 © Pedro Peláez
 

library ean-search

A PHP class for EAN and ISBN name lookup and validation using the API on ean-search.org

image

relaxed/ean-search

A PHP class for EAN and ISBN name lookup and validation using the API on ean-search.org

  • Friday, May 5, 2017
  • by relaxed
  • Repository
  • 1 Watchers
  • 2 Stars
  • 919 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 15 % Grown

The README.md

relaxed/ean-search

A PHP class for EAN and ISBN name lookup and validation using the API on ean-search.org., (*1)

To use it, you need an API access token from https://www.ean-search.org/ean-database-api.html, (*2)

Initialization

include "EANSearch.php";

// your access token from ean-search.org
$accessToken = 'abcdef';

$eanSearch = new EANSearch($accessToken);

Usage

$ean = '5099750442227';
$name = $eanSearch->barcodeLookup($ean);
echo "$ean is $name\n";

// more detailed response, preferably in English
$product = $eanSearch->barcodeSearch($ean, 1);
echo "$ean is $product->name from category $product->categoryName issued in $product->issuingCountry\n";

$isbn = '1119578884';
$title = $eanSearch->isbnLookup($isbn);
echo "$isbn is $title\n";

$ok = $eanSearch->verifyChecksum($ean);
echo "$ean is " . ($ok ? 'valid' : 'invalid') . "\n";

$eanList = $eanSearch->productSearch('Apple iPod');
foreach ($eanList as $product) {
    echo "$product->ean is $product->name\n";
}

$eanList = $eanSearch->similarProductSearch('Apple iPod with extra feature');
foreach ($eanList as $product) {
    echo "$product->ean is $product->name\n";
}

$eanList = $eanSearch->categorySearch(45, 'Thriller');
foreach ($eanList as $product) {
    echo "$product->ean from Music category is $product->name\n";
}

$eanList = $eanSearch->barcodePrefixSearch(4007249146);
foreach ($eanList as $product) {
    echo "$product->ean is $product->name\n";
}

$ean = '5099750442227';
$country = $eanSearch->issuingCountryLookup($ean);
echo "$ean was issued in $country\n";

//$ean = '5099750442227';
//$barcode = $eanSearch->barcodeImage($ean, 300, 200);
//header("Content-Type: image/png");
// echo $barcode;

$credits = $eanSearch->creditsRemaining();
echo "$credits credits remaining\n";

The Versions

05/05 2017

dev-master

9999999-dev https://www.ean-search.org/ean-database-api.html

A PHP class for EAN and ISBN name lookup and validation using the API on ean-search.org

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

rest barcode ean webservice isbn upc isbn13

05/05 2017

v1.1

1.1.0.0 https://www.ean-search.org/ean-database-api.html

A PHP class for EAN and ISBN name lookup and validation using the API on ean-search.org

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

rest barcode ean webservice isbn upc isbn13

05/05 2017

v1.0

1.0.0.0 https://www.ean-search.org/ean-database-api.html

A PHP class for EAN and ISBN name lookup and validation using the API on ean-search.org

  Sources   Download

The Requires

  • php >=5.3.0

 

rest barcode ean webservice isbn upc isbn13