zsoltjanes/laravel-hungarian-zip-codes

1.0.0 2022-02-06 16:33 UTC

This package is auto-updated.

Last update: 2024-10-06 22:29:13 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License

With this package you are able to make a new database table and seed the current hungarian zip codes with settlement names and Budapest's districts. The original database file can be found in the official hungarian post office's website.

Installation

You can install the package via composer:

composer require zsoltjanes/laravel-hungarian-zip-codes

You have to publish the migration, the seeder and the data file:

php artisan vendor:publish --tag="hungarian-zip-codes-default"

Check the configuration before continue. You can publish the config file with:

php artisan vendor:publish --tag="hungarian-zip-codes-config"

You can run the migration

php artisan migrate

You can run the seeder:

php artisan db:seed --class=HungarianZipCodesSeeder

Changelog

Please see CHANGELOG for more information on what has changed recently.

License

The MIT License (MIT). Please see License File for more information.