awcodes / postal-codes
This is a package to easily install and use postal codes in your Laravel application from GeoNames.org
Installs: 828
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/awcodes/postal-codes
Requires
- php: ^8.1
- ext-zip: *
- maatwebsite/excel: ^3.1
- spatie/laravel-package-tools: ^1.14.0
Requires (Dev)
- laravel/pint: ^1.0
- spatie/laravel-ray: ^1.26
This package is auto-updated.
Last update: 2025-10-22 14:11:44 UTC
README
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/.
Installation & Usage
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}
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.