Download the PHP package sglms/gs1-gtin without Composer
On this page you can find all versions of the php package sglms/gs1-gtin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package gs1-gtin
GS1 / GTIN
GS1-128 / GTIN (UPCA; EAN8; ITF14) creator and parser; including barcode generation.
In this version we have included Laravel Service Providers.
Installation
Usage
GTIN (GTIN-14)
Generate GTIN-14 (prefix + company number + item reference + check digit):
Display (on-the-fly)
Save (with numbers) and display
For now, only JPG images are supported, but will add other standards as needed.
Validate
GTIN-12 (UPC-A)
Generate GTIN-12 (company number + item reference + check digit):
GTIN-8 (EAN-8)
Generate GTIN-8 (company number + item reference + check digit):
GS1
object(Sglms\Gs1Gtin\Gs1)[4]
public array 'data' =>
array (size=8)
'01' => string '00012345678905' (length=14)
3302 => string '000700' (length=6)
3102 => string '002268' (length=6)
11 => string '230101' (length=6)
17 => string '250630' (length=6)
21 => string 'SN123456' (length=8)
37 => int 10
10 => string 'ABC123' (length=6)
public ?string 'gs1' => string '(01)00012345678905(10)ABC123(3201)000500(3302)000700(17)250630(21)SN123456(37)10(11)230101' (length=90)
public ?string 'sscc' => null
public ?string 'gtin' => string '00012345678905' (length=14)
public ?string 'content' => null
public ?string 'netWeight' => string '002268' (length=6)
public ?string 'grossWeight' => string '000700' (length=6)
public ?string 'batch' => string 'ABC123' (length=6)
public ?string 'serial' => string 'SN123456' (length=8)
public ?string 'productionDate' => string '230101' (length=6)
public ?string 'expirationDate' => string '250630' (length=6)
public ?int 'pieces' => int 10
You can also create a GS1 instance verbously.
Standards
GS1 Identifiers can be found here. We use only a few, they are enumerated in src/Gs1Codes.php, you can add your own as needed.
Credits
Bar code generator: picqer/php-barcode-generator.