Other number verifications (via: Things I tripped over when implementing the “Elf proef”: digit check for Dutch bank account numbers and social security numbers (bankrekeningnummer, BSN/Sofinummer)
Posted by jpluimers on 2012/09/27
- [Wayback] Bar Code Types | Technical | BarCodes & Identification | Products & Solutions | GS1 – The global language of business.
- [Wayback] Check Digit Calculator | Support | BarCodes & Identification | Products & Solutions | GS1 – The global language of business.
EAN (GLN,GTIN, EAN numbers administered by GS1)
Related:
- Check digit – Wikipedia, the free encyclopedia.
- Universal Product Code – Wikipedia, the free encyclopedia.
- International Article Number (EAN) – Wikipedia, the free encyclopedia.
- Global Trade Item Number – Wikipedia, the free encyclopedia.
/** * This is a data provider for the above Unit-test. */ public function provider() { return array( array('', null), // Empty array('0', null), // Empty array(' ', null), // Empty array('NOT-NUMERIC', null), array('77676656', null), // Invalid EAN8 - we do not validated EAN8 at this time. array('123456789999', '0123456789999'), // Upc valid, translated to EAN array('5031366016409', '5031366016409'), array('99802618537', '0099802618537'), array('99802469443', '0099802469443'), array('58231298109', '0058231298109'), // Too short but valid ean, needs zeros padding. ); }
via Ean13.php – yinyang – YinYang Zend Framework Supplement Library – Google Project Hosting.
Edit 20210402: this library has since moved without commit history from Google Code to GitHub with new source code file at [Wayback/Archive.is] yinyang/Ean13.php at master · henryhayes/yinyang.
YinYang Zend Framework Supplement Library
YinYang is a library of classes. Generally anything that is created in addition to Zend Framework and can be reused will be included in this library. YinYang requires Zend Framework as most of the classes extend ZF.
To use, simply checkout a copy, add the library/YinYang folder to your library folder and add YinYang to your list of autoloader namespaces.
Old:
- [Wayback] Repository – Google Code Archive – Long-term storage for Google Code Project Hosting.
- [Wayback] Commits – Google Code Archive – Long-term storage for Google Code Project Hosting.
New:
–jeroen
Rate this:
Share this:
- Share on Mastodon (Opens in new window) Mastodon
- Share on Bluesky (Opens in new window) Bluesky
- Share on Tumblr
- Share on Reddit (Opens in new window) Reddit
- Share on Threads (Opens in new window) Threads
- Tweet
- Share on Telegram (Opens in new window) Telegram
- Share on Nextdoor (Opens in new window) Nextdoor
- Share on WhatsApp (Opens in new window) WhatsApp
- Print (Opens in new window) Print
- Email a link to a friend (Opens in new window) Email
Related
This entry was posted on 2012/09/27 at 06:00 and is filed under .NET, Barcode, C#, C# 3.0, C# 4.0, C# 5.0, Development, EAN, Software Development. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
One Response to “Other number verifications (via: Things I tripped over when implementing the “Elf proef”: digit check for Dutch bank account numbers and social security numbers (bankrekeningnummer, BSN/Sofinummer)”
Leave a comment Cancel reply
This site uses Akismet to reduce spam. Learn how your comment data is processed.






Elfproef as T-SQL UDF « The Wiert Corner – irregular stream of Wiert stuff said
[…] a follow-up on my earlier number validation posts (Elf proef in C# and Other number verifications), I found a nice T-SQL version of the Elfproef for Dutch bank account […]