Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Zipcodevalidator

Zipcodevalidator Laravel Package

uvinum/zipcodevalidator

PHP package for validating ZIP and postal codes by country. It offers country-aware validation rules so Laravel and PHP applications can check address formats against supported regional formats, useful for checkout, registration, and other address forms.

View on GitHub
Deep Wiki
Context7

ZIP codes validator built with PHP

Frequently asked questions about Zipcodevalidator
How do I install uvinum/zipcodevalidator in a Laravel application?
Install it with Composer using composer require uvinum/zipcodevalidator, then confirm PHP and Illuminate constraints before using it. Because the last release is from 2017, treat installation as a proof of concept first. In Laravel, expose the package through an application-owned service or custom validation rule rather than calling it directly from controllers.
Does uvinum/zipcodevalidator support Laravel 10 or Laravel 11?
There is no indication of official support for modern Laravel versions, and the last release was in 2017. Check the package Composer constraints for PHP and Illuminate components and test installation against your target Laravel major version. If constraints block installation, consider wrapping the pattern data or forking the package under an internal namespace.
Which countries' ZIP or postal code formats does this package validate?
The package is described as country-aware and validates against supported regional formats, but the provided overview does not enumerate every country. Review the source patterns and build a fixture set for the countries your application actually serves. Treat the 2017 regex dataset as a starting reference, not an authoritative worldwide source.
Can I use uvinum/zipcodevalidator in a Laravel form request?
Yes, but it is better to wrap it in a custom validation rule or a PostalCodeValidator interface instead of calling the package directly from a form request. That keeps your domain code insulated from an old dependency. It also makes it easier to replace or fork later.
Does this package verify that a postal code or address actually exists?
No. It performs format validation using country-specific patterns and does not confirm address validity or that a ZIP code is assigned. For shipping or fraud checks you need an address verification service in addition to format validation. Treat regex validation as a data-quality check only.
How should I handle countries that do not use postal codes?
Your application should explicitly model postal codes as not applicable rather than relying on the package to distinguish that from an invalid code. The overview does not state whether the package makes that distinction. Skip validation for those countries and keep that business decision in your own rules.
Is uvinum/zipcodevalidator maintained and safe for production use?
The package has low activity, zero dependents, and a last release from 2017, so it is effectively in maintenance limbo. MIT licensing allows a fork, but you should budget for owning updates and regression tests. Roll it out behind a feature flag with monitoring and a manual override.
What are the alternatives to this package for Laravel postal code validation?
Alternatives include maintained postal-code datasets, internal country rule sets, or country-specific libraries wrapped behind your own validator interface. Because this package is narrow and low-risk to replace, design an adapter now so you can swap implementations later. Choose based on whether you need format validation, address verification, or shipping-zone eligibility.
How do I test postal code validation with uvinum/zipcodevalidator?
Build fixtures for valid, invalid, and not-applicable postal codes in every country you support, then compare results against known formats. Test PHP 8.x deprecation warnings, Unicode handling, and whether regex patterns are anchored. Keep those tests in your application so they survive a fork or replacement.
Can I use uvinum/zipcodevalidator outside Laravel in plain PHP?
The package is a PHP utility and should be usable in plain PHP if its PHP version constraints match your runtime. Verify Composer autoloading and run the same country fixtures you would use in Laravel. Even outside Laravel, wrapping it behind an interface protects you from future replacement.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console