postcode
postcode copied to clipboard
A PHP library to validate and format postcodes
Simple interface applied to all exceptions, allowing code such as: ```php ... use Brick\Postcode\PostcodeException; try { $postcodeFormatter->format('GB', $invalidPostcode); } catch (PostcodeException $e) { throw new ApplicationSpecificException( sprintf('There was a problem...
Updated the postal code validation regex to enforce the specific structure of French postal codes. The new regex ensures that the first two digits fall within the valid ranges (01–95...
Hi Ben, as discussed in the previous [PR 13](https://github.com/brick/postcode/pull/13#discussion_r1775012796), i hereby present a new PR to make testing use the global postcode formatter. A few things to note: 1. Because...