setono / postal-code-regular-expressions
List of regular expressions for postal codes to use in your validation of postal codes
Installs: 1 976
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=7.4
Requires (Dev)
- phpunit/phpunit: ^9.6
- setono/code-quality-pack: ^2.4
This package is auto-updated.
Last update: 2024-11-19 13:11:00 UTC
README
Installation
The easiest way to install this library is by installing the library along with its HTTP client dependencies:
composer require setono/postal-code-regular-expressions
Usage
<?php $postalCodes = require 'postal_code_regular_expressions.php'; if (preg_match($postalCodes['DK'], '9000') === 1) { // the postal code is valid }