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.1(4mo ago)0101MITPHPPHP ^8.1CI failing

Since Jan 8Pushed 4mo 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 1mo ago

READMEChangelog (2)Dependencies (9)Versions (3)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

35

—

LowBetter than 79% of packages

Maintenance77

Regular maintenance activity

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 81.8% 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 ~0 days

Total

2

Last Release

125d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1d92b67d645c17b1cda59ab8c5e1251b7e646e3a74ceecb63244f3c3fb82a9d9?d=identicon)[ChrisHardie](/maintainers/ChrisHardie)

---

Top Contributors

[![ChrisHardie](https://avatars.githubusercontent.com/u/311772?v=4)](https://github.com/ChrisHardie "ChrisHardie (9 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

[scalar/laravel

Render your OpenAPI-based API reference

6183.9k2](/packages/scalar-laravel)[ryangjchandler/bearer

Minimalistic token-based authentication for Laravel API endpoints.

8129.8k](/packages/ryangjchandler-bearer)[combindma/laravel-facebook-pixel

Meta pixel integration for Laravel

4956.9k](/packages/combindma-laravel-facebook-pixel)[stechstudio/laravel-hubspot

A Laravel SDK for the HubSpot CRM Api

2971.0k](/packages/stechstudio-laravel-hubspot)[njoguamos/laravel-plausible

A laravel package for interacting with plausible analytics api.

208.8k](/packages/njoguamos-laravel-plausible)[tapp/filament-webhook-client

Add a Filament resource and a policy for Spatie Webhook client

1120.2k](/packages/tapp-filament-webhook-client)

PHPackages © 2026

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