A PHP library that provides zip code validation for many countries. Ready for production use.
PHP >= 5.4
Via Composer
$ composer require uvinum/zipcodevalidator
<?php
$zip_code_validator = new Validator();
$zip_code_validator->validate($a_country_iso_code, $a_zip_code);
Please see CHANGELOG for more information what has changed recently.
$ composer test
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Based on https://github.com/barbieswimcrew/zip-code-validator Symfony Constraint class
If you discover any security related issues, please email developers at uvinum.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.