setono/postal-code-regular-expressions

List of regular expressions for postal codes to use in your validation of postal codes

v1.1.0 2023-06-19 10:04 UTC

This package is auto-updated.

Last update: 2024-04-19 11:59:42 UTC


README

Latest Version Software License Build Status Code Coverage

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
}