2017 © Pedro Peláez
 

symfony-bundle smarty-streets-bundle

Symfony 2 Bundle for SmartyStreet's API

image

blackknight467/smarty-streets-bundle

Symfony 2 Bundle for SmartyStreet's API

  • Tuesday, May 17, 2016
  • by blackknight467
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3,606 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 6 % Grown

The README.md

SmartyStreetsBundle

SmartyStreets Bundle for Symfony 2., (*1)

Installation

Step 1: Download the SmartyStreetsBundle

Using Composer, (*2)

Add the following to the "require" section of your composer.json file:, (*3)

    "blackknight467/smarty-streets-bundle": "1.*"

Step 2: Enable the bundle

Enable the bundle in the kernel:, (*4)

<?php
// app/appKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new blackknight467\SmartyStreetsBundle\SmartyStreetsBundle(),
    );
}

Step 3: Configure the bundle

Add the following configuration to your app/config/config.yml:, (*5)

smarty_streets:
    auth_id: 'your SmartyStreets auth id'
    auth_token: 'your SmartyStreets auth token'

Usage

You an use this bundle in two ways. The first is to use the interfaces provided to map to your existing entities.
The second is to simply pass text strings to the functions that use them., (*6)

Using Text Strings

In your controller:, (*7)

  $this->get('blackknight467.smarty_streets')->verifyUSStreetAddressText('1600 Pennsylvania Ave NW, Washington, DC 20500');

Using Interfaces

In your entity:, (*8)

class SampleAddressEntity implements SimpleSmartyStreetsUSAddressInterface

In your controller:, (*9)

  $address = new SampleAddressEntity();
  $this->get('blackknight467.smarty_streets')->verifyUSStreetAddress($address);

Commands

This bundle comes with some symfony console commands so you can test text input:, (*10)

php app/console smartystreets:us-verify {address}
php app/console smartystreets:us-zip-verify {zipcode}

License

This bundle is under the MIT license. See the complete license in the bundle: LICENSE, (*11)

The Versions

17/05 2016

dev-master

9999999-dev http://github.com/blackknight467/SmartyStreetsBundle

Symfony 2 Bundle for SmartyStreet's API

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

by Derick Felsman

validation address bundle smarty lookup smartystreets streets

22/01 2016

v1.0.1

1.0.1.0 http://github.com/blackknight467/SmartyStreetsBundle

Symfony 2 Bundle for SmartyStreet's API

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

by Derick Felsman

validation address bundle smarty lookup smartystreets streets

09/09 2015

v1.0

1.0.0.0 http://github.com/blackknight467/SmartyStreetsBundle

Symfony 2 Bundle for SmartyStreet's API

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

by Derick Felsman

validation address bundle smarty lookup smartystreets streets