Hi Steven, We have an implementation of the Luhn algorithm within Zend_Validate_Ccnum, though I'm pretty sure we have not implemented the Verhoeff algorithm anywhere. (Please correct me if I'm wrong, anyone.)
I think that such validation may fit nicely into the Zend_Validate "namespace", but if you are interested in contributing this and other utilities to Zend Framework, please see: http://framework.zend.com/community/contribute for more information. Probably it would be good to describe the utilities and getting some more feedback before making any judgment about whether they would be worth including. :) There is also a proposal process for making ZF contributions: http://framework.zend.com/wiki/display/ZFPROP/Home Thank you for your interest in contributing to Zend Framework! :) Best regards, Darby Steven Brown wrote: > Hi all, > > I was just about to create some utility classes for Luhn (MOD10) and > Verhoeff check digit generation and checking. Is this the kind of thing that > might fit into ZF somewhere and if so where? > > There are a whole heap of utility classes I use outside of ZF that are > sometimes incompatible or not in the coding standard of ZF, is there much > point in converting these and contributing them to ZF? > > Cheers, > Steven > > >
