This is a package to easily install and use postal codes in your Laravel application. All data is provided by GeoNames data dumps. You can see the available countries at https://download.geonames.org/export/zip/.
You can install the package via composer:
composer require awcodes/postal-codes
If you need to publish the migration you may do so with:
php artisan postal-codes:install
Then the only thing left to do is to seed your data. This can be done with the postal-codes:seed command.
php artisan postal-codes:seed {country=US}
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.