PHP code example of phaza / laravel-norwegian-zip-codes

1. Go to this page and download the library: Download phaza/laravel-norwegian-zip-codes 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/ */

    

phaza / laravel-norwegian-zip-codes example snippets


	$zip_code     = \NorwegianZipCodes\Models\ZipCode::find('7340');
	$municipality = $zip_code->municipality;
	$county       = $municipality->county