PHP code example of codescheme / postcodes
1. Go to this page and download the library: Download codescheme/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/ */
codescheme / postcodes example snippets
'providers' => [
Codescheme\Postcodes\PostcodeServiceProvider::class,
]
'aliases' => [
'Postcode' => Codescheme\Postcodes\Facades\Postcode::class,
]
Route::get('/postcode', function(){
$data = Postcode::postcodeLookup('SE21 8JL');
print_r($data);
return null;
});