An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# ZipCode Validator
[![Latest Stable Version](https://poser.pugx.org/uvinum/zipcodevalidator/v/stable)](https://packagist.org/packages/uvinum/zipcodevalidator)
[![License](https://poser.pugx.org/uvinum/zipcodevalidator/license)](https://packagist.org/packages/uvinum/zipcodevalidator)
[![Build Status](https://travis-ci.org/uvinum/zipcode-validator.svg?branch=master)](https://travis-ci.org/uvinum/zipcode-validator)
[![Total Downloads](https://poser.pugx.org/uvinum/zipcodevalidator/downloads)](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.