Anunatak / postal by tormjens

32
1
2
Package Data
Maintainer Username: tormjens
Maintainer Contact: web@anunatak.no (Anunatak)
Package Create Date: 2015-03-20
Package Last Update: 2015-03-20
Home Page:
Language: PHP
License: Unknown
Last Refreshed: 2024-05-04 15:08:59
Package Statistics
Total Downloads: 32
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 1
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

Postal

Simple usage of the postal codes and places for norwegian places.

Installation

Install using composer:

composer require anunatak/postal

This package is compatible with Laravel 5.

Add the service provider in config/app.php:

'Anunatak\Postal\PostalServiceProvider',

And add an alias in the same file:

'Postal'            => 'Anunatak\Postal\Postal',

Publish the migration for the data

php artisan vendor:publish

Migrate the database

php artisan migrate

Run an update of the postal codes

php artisan postal:update

Usage

Really just one simple function:

$place = Postal::getPlace('6300'); // returns string: 'Åndalsnes'