PHPackages                             dpovshed/zipus - 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. dpovshed/zipus

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

dpovshed/zipus
==============

US zipcode static database.

1.1(7y ago)32.3k2[2 issues](https://github.com/dpovshed/zipus/issues)MITPHPPHP &gt;=5.6.3

Since Oct 24Pushed 7y ago1 watchersCompare

[ Source](https://github.com/dpovshed/zipus)[ Packagist](https://packagist.org/packages/dpovshed/zipus)[ Docs](https://github.com/dpovshed/zipus)[ RSS](/packages/dpovshed-zipus/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

United States Zipcode Lookup database
=====================================

[](#united-states-zipcode-lookup-database)

This is a Laravel 5 package for easy and simple lookup for geographic data by U.S. zipcode. While there are a few nice solutions like  for online lookup, sometimes i might be preferable to have all the data locally.

The package using the data from  . There is an Artisan command implemented to perform automatic update of the data.

Installation
------------

[](#installation)

### Step 1

[](#step-1)

Add this to your `composer.json`

```
{
    "require": {
        "dpovshed/zipus": "1.*"
    }
}

```

then install package as usual.

- Laravel 5.5+ will automatically discover the package.

### Step 2

[](#step-2)

Run the following command:

php artisan zipus-import

If everything is fine, as a result in your cache directory you'll have JSONed arrays with the data.

If your application is in debug mode, i.e. *APP\_DEBUG* is set to *true* in the *.env* file, you may visit an URL  to check the lookup process.

Usage
-----

[](#usage)

Lookup functionality is provided as a service, so use construction like

```
$city = app()->make('zipcode')->getCity('10282');

```

to get city name for a particular zipcode. Result is a string with a city name. To get the all data available please use function named *getData()*:

```
$city = app()->make('zipcode')->getData('10282');

```

You will get a resulting array like:

```
[
  'ZipCodeType' => string 'STANDARD' (length=8)
  'City' => string 'NEW YORK' (length=8)
  'State' => string 'NY' (length=2)
  'LocationType' => string 'PRIMARY' (length=7)
  'Lat' => string '40.71' (length=5)
  ...
];
```

All the elements of an array would be named exactly as a column in original CSV file form  . Please note that package used a database where a patricular zipcode is resolved only to one primary address.

In case passed string is not a valid U.S. zipcode, as a result you will get unchanged zipcode with *getCity()* and an empty array with *getData()*.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance7

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60% 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 ~646 days

Total

2

Last Release

2890d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/786020?v=4)[Dennis Povshedny](/maintainers/dpovshed)[@dpovshed](https://github.com/dpovshed)

---

Top Contributors

[![dpovshed](https://avatars.githubusercontent.com/u/786020?v=4)](https://github.com/dpovshed "dpovshed (3 commits)")[![timschwartz](https://avatars.githubusercontent.com/u/13080528?v=4)](https://github.com/timschwartz "timschwartz (2 commits)")

---

Tags

zip codeusageodata

### Embed Badge

![Health badge](/badges/dpovshed-zipus/health.svg)

```
[![Health](https://phpackages.com/badges/dpovshed-zipus/health.svg)](https://phpackages.com/packages/dpovshed-zipus)
```

###  Alternatives

[yajra/laravel-datatables-buttons

Laravel DataTables Buttons Plugin.

2569.6M57](/packages/yajra-laravel-datatables-buttons)[spatie/laravel-export

Create a static site bundle from a Laravel app

672139.5k6](/packages/spatie-laravel-export)[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

198306.8k](/packages/fumeapp-modeltyper)[zidbih/laravel-deadlock

Make temporary Laravel workarounds expire and fail CI when ignored.

984.0k](/packages/zidbih-laravel-deadlock)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

19253.0k3](/packages/interaction-design-foundation-laravel-geoip)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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