Generator

Monthly Sponsors

Our Laravel Products

InfyHMSInfyHMS-SAASInfyJobsInfyChatInfyCareInfyVCards-SaaSInfyInvoicesInfyInvoices-SaaSInfyCalInfyFundingInfyNews

Laravel UPCItem DB

TABLE OF CONTENT
  1. Installation
  2. Publish the config file
  3. Add Facade
  4. Usage

Installation

Install the package by the following command,

composer require infyomlabs/laravel-upcitemdb

Publish the config file

Run the following command to publish config file,

php artisan vendor:publish --provider="InfyOm\UPCItemDB\UPCItemDBServiceProvider"

Add Facade

Add the Facade to your config/app.php into aliases section,

Usage

Lookup

For UPC Lookup, use the lookup method by calling,

\UPCItemDB::lookup('4002293401102');

For Search API, you can use the search method,

\UPCItemDB::search('iphone 6'); \UPCItemDB::search('iphone 6', [ 'brand' => 'apple' ]);