How can I validate diverse barcode encodings using PHP? -


i'm tasked validating gtin-14, gtin-13, gtin-12, gtin-8 , upc-e barcodes. have seen few functions here , there, i'm unclear on how validate code without knowing ahead of time standard in use.

i assume must possible, i'm @ loss should begin.

validating content of barcode shouldn't problem. take @ specification different gtin-formats. problematic part check existence of required gs1 symbol identifier. commonly used libs barcode decoding (zxing, zbar) not give symbol identifier. exception zxing code-128. if have check other carrier types have commercial decoders. take @ question more details.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -