PHP code example of rpungello / laravel-address-formatter
1. Go to this page and download the library: Download rpungello/laravel-address-formatter library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
rpungello / laravel-address-formatter example snippets
return [
'default_origin_country' => 'US',
];
$address = new \CommerceGuys\Addressing\Address();
\Rpungello\LaravelAddressing\Facades\AddressFormatter::formatDefault($address);
\Rpungello\LaravelAddressing\Facades\AddressFormatter::formatPostal($address);
bash
php artisan vendor:publish --tag="laravel-address-formatter-config"