Home » Validate » Validate_US
Validation class for US
This package is unmaintained.
Download latest release 0.5.5 (archived versions might be outdated)
License: New BSD
Description
Package containes locale validation for US such as:
* SSN
* Postal Code
* Regions (States)
* Phone Numbers
Maintainers
- Brent Cook (busterb) — lead, inactive
- Tim Gallagher (timmyg) — lead, inactive
- David Coallier (davidc) — lead, active
Dependencies
Required
- PHP (>= 4.2.0)
- PEAR Installer (>= 1.4.0b1)
Releases
- 0.5.5 (beta, 2012-04-07)
Release notes
License: New BSD
QA release
Bug #18118 Incorrect validation - 0.5.4 (beta, 2010-10-10)
- 0.5.3 (beta, 2007-12-12)
- 0.5.2 (beta, 2005-11-04)
Release notes
License: New BSD
- Switch to the new BSD License
(see http://www.opensource.org/licenses/bsd-license.php) - 0.5.1 (beta, 2005-09-23)
- 0.5.0 (beta, 2005-05-20)
Release notes
License: new BSD
- Split from Validate into independent package
- CS fixes
- region() added in US (that is validation of the states)
- phoneNumber() added. hasn't had a release in too long.
- Fix Bug #4068 Always returns true if area code is required in Validate_US::phoneNumber
- BC break!
postalCode unified between countries (name wise), now all postcode validation funcs are named postalCode
- Added test cases for some of the functions
- Added a var named $high_groups which will stores result of a query to a webpage that ssnGetHighGroups
does to get list of all high groups, this will really help keeping the load down if there is a need to validate more then one ssn
in a row.
- Fix an unassigned variable warning in SSN checks
- Lots of updates to how SSN checks work (various contributors)
Note, I'm releasing this because I just realized that I'm the maintainer and it
hasn't had a release in too long. We really should stabilize it.
Bugs
| ID | Status | Type | Version | Date | Summary |
|---|---|---|---|---|---|
| #2394 | Closed | Bug | 2004-09-24 | Validate_US needs updating | |
| #4914 | Closed | Bug | 2005-07-26 | reference to $this when object should be called in static context | |
| #5867 | Closed | Bug | 2005-11-04 | Test bug. | |
| #6676 | Closed | Req | 2006-02-02 | just a note about source code comments | |
| #6898 | Closed | Req | 0.5.2 | 2006-02-22 | Change if empty() then true behavior of Validate_US::phoneNumber() |
| #10904 | Open | Req | 0.5.2 | 2007-05-01 | APO/FPO addresses |
| #11784 | Closed | Bug | CVS | 2007-08-07 | running phpcs on US.php highlights 138 errors + 15 warnings |
| #11837 | Closed | Bug | CVS | 2007-08-13 | package now uses validate_functions.inc for tests but it is not installed. |
| #12498 | Closed | Req | 0.5.2 | 2007-11-21 | Suggestion for US ZIP code validation |
| #16909 | Open | Bug | 0.5.3 | 2009-12-15 | Phone number validation |
| #18118 | Closed | Bug | 0.5.4 | 2010-12-16 | Incorrect validation |
| #18119 | Duplicate | Bug | 0.5.4 | 2010-12-16 | Incorrect validation |