Download the PHP package detain/zip-zapper without Composer
On this page you can find all versions of the php package detain/zip-zapper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download detain/zip-zapper
More information about detain/zip-zapper
Files in detain/zip-zapper
Download detain/zip-zapper
More information about detain/zip-zapper
Files in detain/zip-zapper
Vendor detain
Package zip-zapper
Short Description Validates Zip/Postal Codes for any country and gives that countries name for thier verions of Zip/Post code
License MIT
Homepage https://detain.github.io/zip-zapper
Package zip-zapper
Short Description Validates Zip/Postal Codes for any country and gives that countries name for thier verions of Zip/Post code
License MIT
Homepage https://detain.github.io/zip-zapper
Please rate this library. Is it a good library?
Informations about the package zip-zapper
Zip Zapper
Validates Zip / Postal type codes by country with some features
Postal Systems by Country
DMOZ Post/Zip Code Info+DB
List of Postal Codes
Based on a similar project sirprize/postal-code-validator but expanded on it adding over 100 new validations and updating ther others using mostly the Wikipedia postal codes list and some other features I needed in zip validation.
Installation
composer require detain/zip-zapper
Usage
Check If Country Is Supported
use Detain\ZipZapper\Validator;
$validator = new Validator();
$validator->hasCountry('CH'); // returns true
Check If Postal Code Is Properly Formatted
use Detain\ZipZapper\Validator;
$validator = new Validator();
$validator->isValid('CH', 'usjU87jsdf'); // returns false
$validator->isValid('CH', '3007'); // returns true
Get The Possible Formats For a Specific Country
use Detain\ZipZapper\Validator;
$validator = new Validator();
$validator->getFormats('GB'); // returns array('@@## #@@', '@#@ #@@', '@@# #@@', '@@#@ #@@', '@## #@@', '@# #@@')
Formatting
#
=0-9
@
=a-zA-Z
All versions of zip-zapper with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4
The package detain/zip-zapper contains the following files
Loading the files please wait ....