PHPackages                             awcodes/postal-codes - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. awcodes/postal-codes

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

awcodes/postal-codes
====================

This is a package to easily install and use postal codes in your Laravel application from GeoNames.org

v0.1.2(8mo ago)53.3k↑245.7%2MITPHPPHP ^8.1CI passing

Since Jun 19Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/awcodes/postal-codes)[ Packagist](https://packagist.org/packages/awcodes/postal-codes)[ Docs](https://github.com/awcodes/postal-codes)[ RSS](/packages/awcodes-postal-codes/feed)WikiDiscussions main Synced yesterday

READMEChangelog (6)Dependencies (4)Versions (8)Used By (0)

This is my package postal-codes
===============================

[](#this-is-my-package-postal-codes)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f4aee9925345d3b850e16940f0ea22871130f5e68cd162b1a43004d4e7ae7403/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6177636f6465732f706f7374616c2d636f6465732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/awcodes/postal-codes)[![Total Downloads](https://camo.githubusercontent.com/6e1fc5ddda02558011e316c9a01ad4b89135d92f16799fc1db94eeaea3302af4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6177636f6465732f706f7374616c2d636f6465732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/awcodes/postal-codes)

This is a package to easily install and use postal codes in your Laravel application. All data is provided by [GeoNames](https://www.geonames.org/) data dumps. You can see the available countries at .

Installation &amp; Usage
------------------------

[](#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
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [awcodes](https://github.com/awcodes)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance77

Regular maintenance activity

Popularity29

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~171 days

Recently: every ~190 days

Total

6

Last Release

254d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3596800?v=4)[Adam Weston](/maintainers/awcodes)[@awcodes](https://github.com/awcodes)

---

Top Contributors

[![awcodes](https://avatars.githubusercontent.com/u/3596800?v=4)](https://github.com/awcodes "awcodes (17 commits)")

---

Tags

laravellaravelawcodespostal-codes

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/awcodes-postal-codes/health.svg)

```
[![Health](https://phpackages.com/badges/awcodes-postal-codes/health.svg)](https://phpackages.com/packages/awcodes-postal-codes)
```

###  Alternatives

[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[stephenjude/filament-feature-flags

Filament implementation of feature flags and segmentation with Laravel Pennant.

122177.8k1](/packages/stephenjude-filament-feature-flags)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

124603.0k](/packages/worksome-exchange)[tapp/filament-form-builder

User facing form builder using Filament components

132.4k3](/packages/tapp-filament-form-builder)[marcelweidum/filament-expiration-notice

Customize the livewire expiration notice

94135.4k5](/packages/marcelweidum-filament-expiration-notice)[awcodes/richer-editor

A collection of extensions and tools to enhance the Filament Rich Editor field.

3912.8k9](/packages/awcodes-richer-editor)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
