beastbytes / postal-code-validator
Postal code validator
dev-master
2023-01-28 15:08 UTC
Requires
- php: ^8.0
- yiisoft/validator: 3.0.x-dev
Requires (Dev)
- beastbytes/postal-code-data-php: dev-master
- phpunit/phpunit: ^9.5
- roave/security-advisories: dev-latest
- vimeo/psalm: ^4.3
This package is auto-updated.
Last update: 2024-04-03 18:48:07 UTC
README
Provides validation for postal codes.
Postal codes can be validated against a single country or a list of countries.
A postalCodeDataInterface implementation is also required, e.g. beastbytes/postal-code-data-php
NOTE: postal-code-validator does not guarantee that a postal code exists, just that it is in a valid format.
For license information see the LICENSE file.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist beastbytes/postal-code-validator
or add
"beastbytes/postal-code-validator": "^1.0.0"
to the require section of your composer.json.