PHPackages                             fadoe/postalcode-validator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. fadoe/postalcode-validator

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

fadoe/postalcode-validator
==========================

Validates postal code

1.0.1(8y ago)0727↓66.7%MITPHPPHP ^7.0

Since Nov 10Pushed 8y ago1 watchersCompare

[ Source](https://github.com/fadoe/postalcode-validator)[ Packagist](https://packagist.org/packages/fadoe/postalcode-validator)[ RSS](/packages/fadoe-postalcode-validator/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (3)Used By (0)

German postal code validator
============================

[](#german-postal-code-validator)

Description
-----------

[](#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
----------

[](#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

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~52 days

Total

2

Last Release

3050d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ccea1342884d6a635b96abf888a8b12a7b035c2c83865cb553bb3c04340c7698?d=identicon)[fadoe](/maintainers/fadoe)

---

Top Contributors

[![fadoe](https://avatars.githubusercontent.com/u/1300722?v=4)](https://github.com/fadoe "fadoe (1 commits)")

### Embed Badge

![Health badge](/badges/fadoe-postalcode-validator/health.svg)

```
[![Health](https://phpackages.com/badges/fadoe-postalcode-validator/health.svg)](https://phpackages.com/packages/fadoe-postalcode-validator)
```

###  Alternatives

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
