fadoe/postalcode-validator

Validates postal code

Installs: 723

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/fadoe/postalcode-validator

1.0.1 2018-01-02 07:22 UTC

This package is auto-updated.

Last update: 2025-10-13 00:27:52 UTC


README

Description

This package contains a class to validate a correct german postal code. This library checks only if the postal code is syntactical valid, not if them exists.

Validation

A valid german postal code

  • starts with 0 to 9
  • if postal code starts with 0, the next number is from 1 to 9
  • if postal code starts with 1 to 9, the next number is from 0 to 9
  • the last three nubers goes from 0 to 9