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(6mo ago)41.7k↓14.3%2MITPHPPHP ^8.1CI passing

Since Jun 19Pushed 6mo 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 1mo ago

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

40

—

FairBetter than 88% of packages

Maintenance66

Regular maintenance activity

Popularity26

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity47

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

208d 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 (16 commits)")

---

Tags

laravelawcodespostal-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

[awcodes/filament-table-repeater

A modified version of the Filament Forms Repeater to display it as a table.

262815.1k5](/packages/awcodes-filament-table-repeater)[awcodes/filament-badgeable-column

Filament Tables column to append and prepend badges.

142419.3k3](/packages/awcodes-filament-badgeable-column)[awcodes/mason

A simple block based drag and drop page / document builder field for Filament.

2279.6k4](/packages/awcodes-mason)[awcodes/drop-in-action

A form component for Filamentphp allowing actions inside of forms.

8656.0k](/packages/awcodes-drop-in-action)[awcodes/light-switch

Plugin to add theme switching (light/dark/system) to the auth pages for Filament Panels

4789.9k2](/packages/awcodes-light-switch)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)

PHPackages © 2026

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