Download the PHP package matias-vdv/gs1_barcode without Composer
On this page you can find all versions of the php package matias-vdv/gs1_barcode. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download matias-vdv/gs1_barcode
More information about matias-vdv/gs1_barcode
Files in matias-vdv/gs1_barcode
Package gs1_barcode
Short Description Generate GS1-128 standard barcode
License MIT
Informations about the package gs1_barcode
GS1 barcode generator
The library generates GS1 barcode. Currently supported formats: GS1 128.
Install
Note that library requires both GD and Free Type extensions installed
Usage
The simplest example:
This will generate png image using black and white and default font
Custom barcode:
Finally, you can use the output method to stream the image directly to the web browser.
If you want to save the image file, you can use the saveImage method instead.
Acctualy generate the dame barcode becouse all params all set to default values. This shows only available settings
Fluent interface is welcome
Additional info
- Supported image formats: png, jpg
- Barcode must be valid GS1 barcode
Contributing
Everyone is welcome, feel free to join
Supported identifiers
The goal is to support all existing gs1 application identifiers but at the moment I have added only those I needed. Feel free to add or request some. Full list is here
Code | Name | Min length | Max length |
---|---|---|---|
00 | SERIAL SHIPPING CONTAINER CODE | 18 | 18 |
01 | GLOBAL TRADE ITEM NUMBER | 14 | 14 |
02 | ITEM TRADE ITEM NUMBER | 14 | 14 |
10 | BATCH NUMBER | 1 | 20 |
12 | PAYMENT DATE (YYMMDD) | 6 | 6 |
15 | BEST BEFORE DATE (YYMMDD) | 6 | 6 |
17 | EXPIRATION DATE (YYMMDD) | 6 | 6 |
37 | NUMBER OF UNITS CONTAINED | 1 | 8 |
3301 | CONTAINER GROSS WEIGHT (KG) | 6 | 6 |
390(n) | AMOUNT PAYABLE - SINGLE MONETARY AREA | 1 | 15 |
400 | CUSTOMER PURCHASE ORDER NUMBER | 1 | 30 |
415 | GLOBAL LOCATION NUMBER OF THE INVOICE PARTY | 13 | 13 |
8020 | PAYMENT SLIP REFERENCE NUMBER | 1 | 25 |
96 | COMPANY INTERNAL INFORMATION | 1 | 30 |
All versions of gs1_barcode with dependencies
ext-gd Version *