valantic-spryker-eco / maxmind-db
MaxMind GeoIP2 DB Reader Spryker实现
1.0.0
2023-08-01 15:19 UTC
Requires
- php: >=7.3
- geoip2/geoip2: ~2.0
- spryker/kernel: ^3.56.0
- spryker/log: ^3.7.0
- spryker/symfony: ^3.5.0
- spryker/transfer: ^3.25.0
Requires (Dev)
- codeception/module-asserts: ^1.3.0
- codeception/stub: ^3.6.1
- phpstan/phpstan: ^1.0.0
- spryker/code-sniffer: ^0.17.1
- spryker/testify: ^3.40.0
This package is auto-updated.
Last update: 2024-09-09 12:33:36 UTC
README
MaxMind GeoIP2 DB Reader Spryker实现
MaxMind GeoIP2 DB Reader客户端层抽象。有关API文档,请参阅https://www.maxmind.com/。
安装包
composer req valantic-spryker-eco/maxmind-db
更新共享配置
$config[MaxmindDbConstants::MAXMIND_DB_FILE_LOCATION] = APPLICATION_ROOT_DIR . '/data/GeoLite2-Country.mmdb';
使用方法
注入
\ValanticSpryker\Client\MaxmindDb\MaxmindDbClient
在需要的地方。