PHP code example of mv / postal-address

1. Go to this page and download the library: Download mv/postal-address 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/ */

    

mv / postal-address example snippets


use Mv\PostalAddress\Address\French\Address as FrenchAddress;

$address = new FrenchAddress();

$address->setSociety('Ma Société');
$address->setService('Service compta');
$address->setStreetNumber('1 bis');
$address->setStreetType('Avenue');
$address->setStreetName('de la République');
$address->setBat('ZI des industries');
$address->setZipCode('75011');
$address->setCity('Paris');

echo $address;
bash
php composer.phar