uvinum / zipcodevalidator
Library to validate worldwide zipcodes
Installs: 109 087
Dependents: 1
Suggesters: 0
Security: 0
Stars: 14
Watchers: 6
Forks: 6
Open Issues: 2
Requires
- php: >=5.4
Requires (Dev)
- phpunit/phpunit: ~4.7
This package is auto-updated.
Last update: 2024-10-29 05:04:52 UTC
README
A PHP library that provides zip code validation for many countries. Ready for production use.
Prerequisites
PHP >= 5.4
Install
Via Composer
$ composer require uvinum/zipcodevalidator
Usage
<?php
$zip_code_validator = new Validator();
$zip_code_validator->validate($a_country_iso_code, $a_zip_code);
Change log
Please see CHANGELOG for more information what has changed recently.
Testing
$ composer test
Contributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
Acknowledgments
- Based on https://github.com/barbieswimcrew/zip-code-validator Symfony Constraint class
Security
If you discover any security related issues, please email developers at uvinum.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.