{"id":19986082,"url":"https://github.com/eansearch/ean-search","last_synced_at":"2025-05-04T07:31:04.884Z","repository":{"id":62534542,"uuid":"90302126","full_name":"eansearch/ean-search","owner":"eansearch","description":"A PHP class for EAN and ISBN name lookup and validation using the API on ean-search.org","archived":false,"fork":false,"pushed_at":"2024-04-18T18:58:13.000Z","size":8,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-29T01:21:47.833Z","etag":null,"topics":["barcode","ean","gtin","gtin-codes","isbn","isbn-10","isbn-13","lookup","php","search","upc"],"latest_commit_sha":null,"homepage":"https://www.ean-search.org/ean-database-api.html","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eansearch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2017-05-04T19:29:46.000Z","updated_at":"2024-08-12T19:29:36.000Z","dependencies_parsed_at":"2024-04-18T19:55:04.150Z","dependency_job_id":null,"html_url":"https://github.com/eansearch/ean-search","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eansearch%2Fean-search","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eansearch%2Fean-search/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eansearch%2Fean-search/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eansearch%2Fean-search/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eansearch","download_url":"https://codeload.github.com/eansearch/ean-search/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224389221,"owners_count":17303232,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["barcode","ean","gtin","gtin-codes","isbn","isbn-10","isbn-13","lookup","php","search","upc"],"created_at":"2024-11-13T04:27:45.257Z","updated_at":"2025-05-04T07:31:04.879Z","avatar_url":"https://github.com/eansearch.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# relaxed/ean-search\nA PHP class for EAN and ISBN name lookup and validation using the API on ean-search.org.\n\nTo use it, you need an API access token from\nhttps://www.ean-search.org/ean-database-api.html\n\n## Initialization\n```php\ninclude \"EANSearch.php\";\n\n// your access token from ean-search.org\n$accessToken = 'abcdef';\n\n$eanSearch = new EANSearch($accessToken);\n```\n\n## Usage\n```php\n$ean = '5099750442227';\n$name = $eanSearch-\u003ebarcodeLookup($ean);\necho \"$ean is $name\\n\";\n\n// more detailed response, preferably in English\n$product = $eanSearch-\u003ebarcodeSearch($ean, 1);\necho \"$ean is $product-\u003ename from category $product-\u003ecategoryName issued in $product-\u003eissuingCountry\\n\";\n\n$isbn = '1119578884';\n$title = $eanSearch-\u003eisbnLookup($isbn);\necho \"$isbn is $title\\n\";\n\n$ok = $eanSearch-\u003everifyChecksum($ean);\necho \"$ean is \" . ($ok ? 'valid' : 'invalid') . \"\\n\";\n\n$eanList = $eanSearch-\u003eproductSearch('Apple iPod');\nforeach ($eanList as $product) {\n\techo \"$product-\u003eean is $product-\u003ename\\n\";\n}\n\n$eanList = $eanSearch-\u003esimilarProductSearch('Apple iPod with extra feature');\nforeach ($eanList as $product) {\n\techo \"$product-\u003eean is $product-\u003ename\\n\";\n}\n\n$eanList = $eanSearch-\u003ecategorySearch(45, 'Thriller');\nforeach ($eanList as $product) {\n\techo \"$product-\u003eean from Music category is $product-\u003ename\\n\";\n}\n\n$eanList = $eanSearch-\u003ebarcodePrefixSearch(4007249146);\nforeach ($eanList as $product) {\n\techo \"$product-\u003eean is $product-\u003ename\\n\";\n}\n\n$ean = '5099750442227';\n$country = $eanSearch-\u003eissuingCountryLookup($ean);\necho \"$ean was issued in $country\\n\";\n\n//$ean = '5099750442227';\n//$barcode = $eanSearch-\u003ebarcodeImage($ean, 300, 200);\n//header(\"Content-Type: image/png\");\n// echo $barcode;\n\n$credits = $eanSearch-\u003ecreditsRemaining();\necho \"$credits credits remaining\\n\";\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feansearch%2Fean-search","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feansearch%2Fean-search","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feansearch%2Fean-search/lists"}