PHP code example of adr / addressverification

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

    

adr / addressverification example snippets


use ADR\AddressVerification

$addressVerification = new AddressVerification();

$address = ['address1' => '<Address1>', 'address2' => '<Address2>, 'city' => '<City>,
'state' => '<State>', 'zip' => '<Zip>', 'zipExt' => '<Zip extension>'];

$response = $addressVerification->verifyAddress($address);

/**

Return Response will be in the format below
['status' => 'True|False', 'message' => '']

**/