PHP code example of axlon / laravel-postal-code-validation
1. Go to this page and download the library: Download axlon/laravel-postal-code-validation library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
axlon / laravel-postal-code-validation example snippets
PostalCodes::passes($country, $postalCode); // returns a boolean
PostalCodes::override('country', '/your pattern/');
// You can also pass overrides as an array
PostalCodes::override([
'country 1' => '/pattern 1/',
'country 2' => '/pattern 2/',
]);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.