sirprize/postal-code-validator
A PHP library for validating postal codes against country-specific formats. Use it to check ZIP and postal codes in forms, APIs, and data imports, ensuring address data is correct. Lightweight, straightforward to integrate, and supports multiple countries.
sirprize/postal-code-validator validates postal codes for countries around the world. It maps each country to its expected postal-code format, so malformed ZIP and postal codes can be rejected before they reach your database or shipping logic. The package pairs a framework-agnostic core with a Laravel validation rule, making it easy to drop into form requests and rules arrays.
How can I help you explore Laravel packages today?