2017 © Pedro Peláez
 

library smartystreets-laravel

Laravel (PHP) SDK for using SmartyStreets geocoding.

image

fireenginered/smartystreets-laravel

Laravel (PHP) SDK for using SmartyStreets geocoding.

  • Tuesday, May 23, 2017
  • by scottconnerly
  • Repository
  • 20 Watchers
  • 4 Stars
  • 12,565 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 12 Versions
  • 8 % Grown

The README.md

smartystreets-laravel

Laravel (PHP) SDK for using SmartyStreets geocoding., (*1)

Only attempting Address Verify at this time; willing to accept pull requests that fill in the other functionalities too (Zipcode Verify, Autocomplete, and Address Extraction)., (*2)

Example Usage

$response = SmartyStreets::addressQuickVerify(array(
    'street'=>'P.O. Box 1017',
    'city'=>'Havertown',
    'state'=>'PA',
));

Methods are available (addressAddToRequest && addressGetCandidates) to check multiple addresses with one POST, but addressQuickVerify only handles one address at a time., (*3)

Further API details, including request and response fields, available at SmartyStreets: https://smartystreets.com/docs/address, (*4)

How to Install

Laravel 5.0 +

  1. Install the fireenginered/smartystreets-laravel package, (*5)

    $ composer require fireenginered/smartystreets-laravel:dev-master
    
  2. Update config/app.php to activate SmartyStreets, (*6)

    # Add `SmartyStreetsLaravelServiceProvider` to the `providers` array
    'providers' => array(
        ...
        'FireEngineRed\SmartyStreetsLaravel\SmartyStreetsServiceProvider',
    )
    
    # Add the `SmartyStreetsFacade` to the `aliases` array
    'aliases' => array(
        ...
        'SmartyStreets'  => 'FireEngineRed\SmartyStreetsLaravel\SmartyStreetsFacade',
    )
    
  3. Create the configuration file config/smartystreets.php:, (*7)

    $ php artisan vendor:publish
    
  4. Configure your API credentials in the config file., (*8)

    'authId'    => 'raw ID here',
    'authToken' => 'raw token here',
    

Alternately, replace the values there with env() calls, and put the credentials in your .env file, (*9)

The Versions

23/05 2017

dev-master

9999999-dev

Laravel (PHP) SDK for using SmartyStreets geocoding.

  Sources   Download

GPL-2.0

The Requires

 

by Scott A Connerly

23/05 2017

1.2.2

1.2.2.0

Laravel (PHP) SDK for using SmartyStreets geocoding.

  Sources   Download

GPL-2.0

The Requires

 

by Scott A Connerly

15/05 2017

1.2.1

1.2.1.0

Laravel (PHP) SDK for using SmartyStreets geocoding.

  Sources   Download

GPL-2.0

The Requires

 

by Scott A Connerly

13/05 2017

1.2.0

1.2.0.0

Laravel (PHP) SDK for using SmartyStreets geocoding.

  Sources   Download

GPL-2.0

The Requires

 

by Scott A Connerly

10/08 2016

1.1.3

1.1.3.0

Laravel (PHP) SDK for using SmartyStreets geocoding.

  Sources   Download

GPL-2.0

The Requires

 

by Scott A Connerly

10/08 2016

1.1.2

1.1.2.0

Laravel (PHP) SDK for using SmartyStreets geocoding.

  Sources   Download

GPL-2.0

The Requires

 

by Scott A Connerly

10/08 2016

1.1.1

1.1.1.0

Laravel (PHP) SDK for using SmartyStreets geocoding.

  Sources   Download

GPL-2.0

The Requires

 

by Scott A Connerly

17/01 2016

1.1.0

1.1.0.0

Laravel (PHP) SDK for using SmartyStreets geocoding.

  Sources   Download

GPL-2.0

The Requires

 

by Scott A Connerly

17/11 2015

1.0.3

1.0.3.0

Laravel (PHP) SDK for using SmartyStreets geocoding.

  Sources   Download

GPL-2.0

by Scott A Connerly

10/08 2015

1.0.2

1.0.2.0

Laravel (PHP) SDK for using SmartyStreets geocoding.

  Sources   Download

GPL-2.0

by Scott A Connerly

10/08 2015

1.0.1

1.0.1.0

Laravel (PHP) SDK for using SmartyStreets geocoding.

  Sources   Download

GPL-2.0

by Scott A Connerly

07/08 2015

1.0

1.0.0.0

Laravel (PHP) SDK for using SmartyStreets geocoding.

  Sources   Download

GPL-2.0

by Scott A Connerly