fadoe / postalcode-validator
Validates postal code
1.0.1
2018-01-02 07:22 UTC
Requires
- php: ^7.0
This package is auto-updated.
Last update: 2024-12-12 22:31:05 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