Address formatter for Laravel powered by commerceguys/addressing
You can install the package via composer:
composer require rpungello/laravel-address-formatter
You can publish the config file with:
php artisan vendor:publish --tag="laravel-address-formatter-config"
This is the contents of the published config file:
return [
'default_origin_country' => 'US',
];
$address = new \CommerceGuys\Addressing\Address();
\Rpungello\LaravelAddressing\Facades\AddressFormatter::formatDefault($address);
\Rpungello\LaravelAddressing\Facades\AddressFormatter::formatPostal($address);
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.