https://github.com/drinksandco/zipcode-validator
ZIP codes validator built with PHP
https://github.com/drinksandco/zipcode-validator
php validation zipcode
Last synced: 11 months ago
JSON representation
ZIP codes validator built with PHP
- Host: GitHub
- URL: https://github.com/drinksandco/zipcode-validator
- Owner: drinksandco
- License: mit
- Created: 2017-03-06T11:49:30.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-05-29T16:13:36.000Z (almost 7 years ago)
- Last Synced: 2025-03-26T11:02:29.620Z (11 months ago)
- Topics: php, validation, zipcode
- Language: PHP
- Homepage:
- Size: 17.6 KB
- Stars: 14
- Watchers: 5
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# ZipCode Validator
[](https://packagist.org/packages/uvinum/zipcodevalidator)
[](https://packagist.org/packages/uvinum/zipcodevalidator)
[](https://travis-ci.org/uvinum/zipcode-validator)
[](https://packagist.org/packages/uvinum/zipcodevalidator)
A PHP library that provides zip code validation for many countries. Ready for production use.
## Prerequisites
PHP >= 5.4
## Install
Via Composer
``` bash
$ composer require uvinum/zipcodevalidator
```
## Usage
```
validate($a_country_iso_code, $a_zip_code);
```
## Change log
Please see [CHANGELOG](https://github.com/uvinum/zipcode-validator/releases) for more information what has changed recently.
## Testing
``` bash
$ composer test
```
## Contributing
Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.
## Versioning
We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/uvinum/zipcode-validator/tags).
## Acknowledgments
* Based on [https://github.com/barbieswimcrew/zip-code-validator](https://github.com/barbieswimcrew/zip-code-validator/ "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
- [Uvinum](https://github.com/uvinum/)
## License
The MIT License (MIT). Please see [License File](LICENSE) for more information.