1. Go to this page and download the library: Download devmobgroup/postcodes 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/ */
use DevMob\Postcodes\Exceptions\NoSuchCombinationException;
use DevMob\Postcodes\Exceptions\PostcodesException;
try {
$provider->lookup('3011ED', '50');
} catch (NoSuchCombinationException $e) {
// Combination of postcode and house number not found
} catch (PostcodesException $e) {
// Catch-all interface for other exceptions.
// It's best to always catch these exceptions, because
// providers may implement their own exceptions that
// are not documented in the ProviderInterface.
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.