Re: Validate_DE

From: Date: Tue, 21 Oct 2003 08:33:20 +0000
Subject: Re: Validate_DE
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-22861@lists.php.net to get a copy of this message
On Mon, 20 Oct 2003 23:05:01 +0200 "Stephan Schmidt" <schst@php-tools.net> wrote: > Hi, > > I just developed a small add-on for the Validate package that is able > to do some validation that's needed for German sites. > > Currently it's able to validate: > - postcode (only format) > - bankcode (only format) > - dialing codes (checks for mobile phone or commercial number) > - phone number > - 0700 phone number (a number you keep your whole life) Sounds good :) > These were the only validation rules I needed, more could possible > follow... > At least there's a foundation for the German package.. > > You can take a look at the sourcecode at: > > http://www.php-tools.de/PEAR/Validate/DE.phps function phone0700($number) should be in the phoneNumber validation and uses options. I would like to see phone code options too in the phoneNumber method (calling back the dialingCode?). The different phone prefices (mobile, commercial,...) should be a property and additionals number should be set, imho. > And an example: > http://www.php-tools.de/PEAR/Validate/example.phps > > Should I just commit this to CVS? Can it be included in the next > version? Write unit tests and you can go ahead. If everyone agrees I will then release a last alpha before entering the beta phase (and freeze the interface) pierre

« previous php.pear.dev (#22861) next »