valantic-spryker-eco/geoip2-api 问题修复 & 功能扩展

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

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

valantic-spryker-eco/geoip2-api

最新稳定版本:1.0.0

Composer 安装命令:

composer require valantic-spryker-eco/geoip2-api

包简介

GeoIP2 API Spryker implementation

README 文档

README

Minimum PHP Version

MaxMind GeoIP2 API Spryker implementation

A client layer abstraction to use MaxMind GeoIP2 API. Refer to https://www.maxmind.com/ for documentation of the API.

Install package

composer req valantic-spryker-eco/geoip2-api

Update your shared config

$config[GeoIp2Constants::GEO_IP_2_ACCOUNT_ID] = '<your-account-id>';
$config[GeoIp2Constants::GEO_IP_2_LICENSE_KEY] = '<your-license-key>';

If you want to modify your locales or options (especially if you want to use GeoLite2), also add

$config[GeoIp2Constants::GEO_IP_2_LOCALES] = ['en'];
$config[GeoIp2Constants::GEO_IP_2_OPTIONS] = [
    'host' => 'geolite.info',
];

Usage

Inject

\ValanticSpryker\Client\GeoIp2\GeoIp2Client

where you need it.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: proprietary
  • 更新时间: 2023-08-01