承接 spikkl/spikkl-php-laravel-client 相关项目开发

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

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

spikkl/spikkl-php-laravel-client

Composer 安装命令:

composer require spikkl/spikkl-php-laravel-client

包简介

Spikkl API client wrapper for Laravel

README 文档

README

Spikkl for Laravel

Spikkl-php-laravel-client incorporates the Spikkl API into your Laravel or Lumen project.

Build Status

Requirements

Installation

Add Spikkl-php-laravel-client to your composer file via the composer require command:

   $ composer require spikkl/spikkl-php-laravel-client:^1.0

Or add it to composer.json manually:

"require": {
  "spikkl/spikkl-php-laravel-client": "^1.0"
}

Spikkl-php-laravel-client's service provider will be automatically registered using Laravel's auto-discovery feature.

Note: for Lumen you have to add the Spikkl facade and service provider manually to: bootstrap/app.php:

$app->withFacades(true, [ 'Spikkl\Laravel\Facades\Spikkl' => 'Spikkl' ]);

$app->register(Spikkl\Laravel\ServiceProvider::class);

Configuration

You will only need to add the SPIKKL_API_KEY variable to your .env file.

SPIKKL_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Example usage

Here you can see an example of just how simple this package is to use.

Location lookup by supported country code, postal code, street number, and street number suffix.

$results = Spikkl::api()->lookup('nld', '2611HB', '175', null);

Location reverse lookup by supported country code, longitude, and latitude.

$results = Spikkl::api()->reverse('nld', 4.354901, 52.012133);

Note: longitude and latitude values will be rounded to 9 decimal places.

Global helper method

For your convenience we have added the global spikkl() helper function. It is an easy shortcut to the Spikkl::api() facade accessor.

// Using facade accessor
$results = Spikkl::api()->lookup('nld', '2611HB', '175', null);

// Using global helper function
$results = spikkl()->lookup('nld', '2611HB', '175', null);

License

BSD (Berkeley Software Distribution) License. Copyright (c) 2020, Spikkl

Support

Contact: www.spikkl.nlinfo@spikkl.nl

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-2-Clause
  • 更新时间: 2020-02-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固