dev-master
9999999-dev
The Requires
- illuminate/support 5.0.*
- parsecsv/php-parsecsv 0.4.5
- php >=5.4.0
by Anunatak
laravel postal place posten
Simple usage of the postal codes and places for norwegian places., (*1)
Install using composer:, (*2)
composer require anunatak/postal
This package is compatible with Laravel 5., (*3)
Add the service provider in config/app.php
:, (*4)
'Anunatak\Postal\PostalServiceProvider',
And add an alias in the same file:, (*5)
'Postal' => 'Anunatak\Postal\Postal',
Publish the migration for the data, (*6)
php artisan vendor:publish
Migrate the database, (*7)
php artisan migrate
Run an update of the postal codes, (*8)
php artisan postal:update
Really just one simple function:, (*9)
$place = Postal::getPlace('6300'); // returns string: 'Ă ndalsnes'
laravel postal place posten