ronanguilloux / IsoCodes

PHP library - Validators for standards from ISO, International Finance, Public Administrations, GS1, Manufacturing Industry, Phone numbers & Zipcodes for many countries
GNU General Public License v3.0
791 stars 77 forks source link

[meta-ticket] GS1 / GTIN code validator #82

Open ronanguilloux opened 8 years ago

ronanguilloux commented 8 years ago

http://www.gs1.org/how-calculate-check-digit-manually

ronanguilloux commented 8 years ago

see:

And:

tbmatuka commented 7 years ago

These validators will return true for a string containing all zeroes (if the string length is correct). That edge case has to be either handled in the code or intentionally left like it is. No matter what you choose to do, this behavior needs to be documented somewhere where users can't miss it.

ronanguilloux commented 7 years ago

Thanks for reporting, @tbmatuka. Just shared fixes in #120 and tagged a new 2.1.2 version