PHP code example of padam87 / address-bundle
1. Go to this page and download the library: Download padam87/address-bundle 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/ */
padam87 / address-bundle example snippets
// app/AppKernel.php
public function registerBundles()
{
return array(
// ...
new Padam87\AddressBundle\Padam87AddressBundle(),
);
}
$formatted = $this->get("padam87.address.formatter")->format($address);
use Padam87\AddressBundle\Service\FormatterService;
//...
$formatted = $this->get("padam87.address.formatter")->format($address, FormatterService::FLAG_NOBR);