PHPackages                             chrishardie/laravel-usps-addresses - 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. [API Development](/categories/api)
4. /
5. chrishardie/laravel-usps-addresses

ActiveLibrary[API Development](/categories/api)

chrishardie/laravel-usps-addresses
==================================

Laravel package that provides a simple facade to the USPS Addresses API

v0.1.2(1w ago)0918MITPHPPHP ^8.1CI failing

Since Jan 8Pushed 1w agoCompare

[ Source](https://github.com/ChrisHardie/laravel-usps-addresses)[ Packagist](https://packagist.org/packages/chrishardie/laravel-usps-addresses)[ Docs](https://github.com/chrishardie/laravel-usps-addresses)[ GitHub Sponsors]()[ RSS](/packages/chrishardie-laravel-usps-addresses/feed)WikiDiscussions main Synced today

READMEChangelog (3)Dependencies (18)Versions (4)Used By (0)

Laravel USPS Addresses
======================

[](#laravel-usps-addresses)

[![Latest Version on Packagist](https://camo.githubusercontent.com/5b2a9ac34bb80e9abce8e7b3a0fb80333bd79c87f9323ac88a2954acb4e0d6ab/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f63687269736861726469652f6c61726176656c2d757370732d6164647265737365732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/chrishardie/laravel-usps-addresses)[![Total Downloads](https://camo.githubusercontent.com/b986b99e49091282921aa4c774cf20b326384d732f31c90b77b01c9c70d2528a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f63687269736861726469652f6c61726176656c2d757370732d6164647265737365732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/chrishardie/laravel-usps-addresses)

Laravel package that provides a simple facade to the USPS Addresses API

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

[](#installation)

You can install the package via composer:

```
composer require chrishardie/laravel-usps-addresses
```

Define required variables in `.env`, available from your app's configuration in the [USPS Developers Dashboard](https://developers.usps.com/):

```
USPS_CLIENT_ID=
USPS_CLIENT_SECRET=
```

You can optionally publish the config file with:

```
php artisan vendor:publish --tag="laravel-usps-addresses-config"
```

This is the contents of the published config file:

```
return [
    'base_url' => env('USPS_ADDRESSES_BASE_URL', 'https://apis.usps.com/addresses/v3'),

    'oauth' => [
        'token_url' => env('USPS_OAUTH_TOKEN_URL', 'https://apis.usps.com/oauth2/v3/token'),
        'client_id' => env('USPS_CLIENT_ID'),
        'client_secret' => env('USPS_CLIENT_SECRET'),
        'scope' => 'addresses',
    ],

    'timeout' => 10,
];
```

Usage
-----

[](#usage)

```
use UspsAddress;

$result = UspsAddress::verify([
    'streetAddress' => '2704 Erie Ave',
    'city' => 'Cincinnati',
    'state' => 'OH',
]);

if ($result->isValid()) {
    echo $result->address->streetAddress;
};
```

Methods available correspond to available API endpoints:

- `UspsAddress::verify()`: Returns the best standardized address for a given address.
- `UspsAddress::cityState()`: Returns the city and state for a given ZIP Code.
- `UspsAddress::zipCode()`: Returns the ZIP Code for a given address.

View the [USPS API documentation](https://developers.usps.com/addressesv3) for details about available parameters and responses.

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

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

Credits
-------

[](#credits)

- [Chris Hardie](https://github.com/ChrisHardie)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

42

↑

FairBetter than 88% of packages

Maintenance98

Actively maintained with recent releases

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor1

Top contributor holds 85.7% 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 ~84 days

Total

3

Last Release

9d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/311772?v=4)[Chris Hardie](/maintainers/ChrisHardie)[@ChrisHardie](https://github.com/ChrisHardie)

---

Top Contributors

[![ChrisHardie](https://avatars.githubusercontent.com/u/311772?v=4)](https://github.com/ChrisHardie "ChrisHardie (12 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

laravelChris Hardielaravel-usps-addresses

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/chrishardie-laravel-usps-addresses/health.svg)

```
[![Health](https://phpackages.com/badges/chrishardie-laravel-usps-addresses/health.svg)](https://phpackages.com/packages/chrishardie-laravel-usps-addresses)
```

###  Alternatives

[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.1k11.2M100](/packages/dedoc-scramble)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.8k3](/packages/defstudio-telegraph)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5021.9k](/packages/simplestats-io-laravel-client)[danestves/laravel-polar

A package to easily integrate your Laravel application with Polar.sh

8120.4k](/packages/danestves-laravel-polar)

PHPackages © 2026

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