setono/postal-code-regular-expressions

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

Installs: 2 891

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/setono/postal-code-regular-expressions

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

This package is auto-updated.

Last update: 2025-09-19 14:49:51 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
}