retailcrm/geohelper-php-sdk 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

retailcrm/geohelper-php-sdk

最新稳定版本:1.0.0

Composer 安装命令:

composer require retailcrm/geohelper-php-sdk

包简介

PHP client for Geohelper API

README 文档

README

PHP-client for Geohelper API.

Use API documentation

Requirements

  • PHP 7.4 and higher

Install

  1. Get composer

  2. Run into your project directory:

composer require retailcrm/geohelper-php-sdk ~1.0.0

If you have not used composer before, include autoloader into your project.

require 'path/to/vendor/autoload.php';

Usage

Get countries

$clientInterface = new \GuzzleHttp\Client();

$client = new RetailCrm\Geohelper\ApiClient(
    $clientInterface,
    'api_key'
);

$response = $client->countriesList();

if ($response->isSuccessful()) {
    $countries = isset($response['result']) ? $response['result'] : array();
    foreach ($countries as $country) {
        echo $country['name'];
    }
} else {
    echo sprintf(
        "Error: [HTTP-code %s] %s",
        $response->getStatusCode(),
        $response->getErrorMsg()
    );
}

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 5
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-07-30