Skip to content

Address formatter for Laravel powered by commerceguys/addressing

License

Notifications You must be signed in to change notification settings

rpungello/laravel-address-formatter

Repository files navigation

Laravel Address Formatter

Latest Version on Packagist GitHub Tests Action Status Total Downloads

Address formatter for Laravel powered by commerceguys/addressing

Installation

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',
];

Usage

$address = new \CommerceGuys\Addressing\Address();
\Rpungello\LaravelAddressing\Facades\AddressFormatter::formatDefault($address);
\Rpungello\LaravelAddressing\Facades\AddressFormatter::formatPostal($address);

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

Address formatter for Laravel powered by commerceguys/addressing

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages