Skip to content

A composer package for Laravel8 to get product information by GS1 code

Notifications You must be signed in to change notification settings

Catname/productInfo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

productInfo

Get product information by GS1 code.

Author: ZhangHQ

Installing

$ composer require catname/productinfo

Usage

use Catname\ProductInfo\ProductInfo;

class example
{
    public function aExample(Request $request)
    {
        $productInfo = new ProductInfo();
        return $productInfo->getProductInfo($request->code);
    }
    
    /**
    * array (size=4)
        'code' => string '06907992512570' (length=14)
        'supplier' => string '内蒙古伊利实业集团股份有限公司' (length=45)
        'name' => string '安慕希希腊风味酸奶205克' (length=33)
        'specs' => string '205克' (length=6)
    */
}

Update

composer update catname/productinfo

License

MIT

About

A composer package for Laravel8 to get product information by GS1 code

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages