PHP code example of blackknight467 / smarty-streets-bundle
1. Go to this page and download the library: Download blackknight467/smarty-streets-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/ */
blackknight467 / smarty-streets-bundle example snippets
// app/appKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new blackknight467\SmartyStreetsBundle\SmartyStreetsBundle(),
);
}
$this->get('blackknight467.smarty_streets')->verifyUSStreetAddressText('1600 Pennsylvania Ave NW, Washington, DC 20500');
$address = new SampleAddressEntity();
$this->get('blackknight467.smarty_streets')->verifyUSStreetAddress($address);