Download the PHP package chrishardie/laravel-usps-addresses without Composer
On this page you can find all versions of the php package chrishardie/laravel-usps-addresses. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download chrishardie/laravel-usps-addresses
More information about chrishardie/laravel-usps-addresses
Files in chrishardie/laravel-usps-addresses
Package laravel-usps-addresses
Short Description Laravel package that provides a simple facade to the USPS Addresses API
License MIT
Homepage https://github.com/chrishardie/laravel-usps-addresses
Informations about the package laravel-usps-addresses
Laravel USPS Addresses
Laravel package that provides a simple facade to the USPS Addresses API
Installation
You can install the package via composer:
Define required variables in .env, available from your app's configuration in the USPS Developers Dashboard:
You can optionally publish the config file with:
This is the contents of the published config file:
Usage
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 for details about available parameters and responses.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Credits
- Chris Hardie
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-usps-addresses with dependencies
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version >= 10.0
spatie/laravel-data Version ^4