Download the PHP package galahad/laravel-addressing without Composer
On this page you can find all versions of the php package galahad/laravel-addressing. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download galahad/laravel-addressing
More information about galahad/laravel-addressing
Files in galahad/laravel-addressing
Package laravel-addressing
Short Description Laravel package providing addressing functionality
License MIT
Homepage https://github.com/glhd/laravel-addressing
Informations about the package laravel-addressing
Laravel Addressing
Laravel Addressing is a Laravel package providing addressing functionality based on
commerceguys/addressing
. It lets you easily
work with addresses using data from CLDR and Google.
The primary focus of Laravel Addressing is:
- Access to up-to-date lists of countries, states/provinces, etc
- Easily validate address data
- Format addresses to match a specific country's rules
If you find this package useful, you should check out Franklin, our universal address input that follows the same conventions as Laravel Addressing.
Installation
First, install the composer package:
Basic Usage
Country
Administrative Area (typically states or provinces)
Validators
You can use some custom validators in your Laravel app:
Countries
You can use country
, country_code
, or country_name
to validate country input:
Administrative Areas
You can use administrative_area
, administrative_area_code
, or administrative_area_name
to validate administrative area input:
Postal Code
You can use postal_code
to validate the zip/postal code:
HTTP Endpoints
Laravel Addressing publishes two routes by default, which can be disabled in the config file.
The prefix (/galahad/addressing
) can also be configured.
GET /galahad/addressing/countries
GET /galahad/addressing/countries/us/administrative-areas
Thanks!
Special thanks to Commerce Guys for their amazing addressing and intl packages, which this project relies heavily on.
All versions of laravel-addressing with dependencies
illuminate/contracts Version ^v7|^8|^9|^10|^11|12.x-dev|dev-master
illuminate/support Version ^v7|^8|^9|^10|^11|12.x-dev|dev-master
illuminate/http Version ^v7|^8|^9|^10|^11|12.x-dev|dev-master
illuminate/routing Version ^v7|^8|^9|^10|^11|12.x-dev|dev-master
illuminate/validation Version ^v7|^8|^9|^10|^11|12.x-dev|dev-master
commerceguys/addressing Version ^v1.2
symfony/intl Version ^v4.2|^v5.0|^v6.0|^7.0
commerceguys/intl Version ^v1.1
doctrine/collections Version ^1.6.2