承接 fireenginered/smartystreets-laravel 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

fireenginered/smartystreets-laravel

Composer 安装命令:

composer require fireenginered/smartystreets-laravel

包简介

Laravel (PHP) SDK for using SmartyStreets geocoding.

README 文档

README

Laravel (PHP) SDK for using SmartyStreets geocoding.

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).

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.

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

How to Install

Laravel 5.0 +

  1. Install the fireenginered/smartystreets-laravel package

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

    # 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:

    $ php artisan vendor:publish
  4. Configure your API credentials in the config file.

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

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

统计信息

  • 总下载量: 44.99k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 16
  • Forks: 9
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 2015-08-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固