MaxMind GeoIP2 DB Reader Spryker implementation

1.0.0 2023-08-01 15:19 UTC

This package is auto-updated.

Last update: 2024-05-09 11:51:43 UTC


README

Minimum PHP Version

MaxMind GeoIP2 DB Reader Spryker implementation

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

Install package

composer req valantic-spryker-eco/maxmind-db

Update your shared config

$config[MaxmindDbConstants::MAXMIND_DB_FILE_LOCATION] = APPLICATION_ROOT_DIR . '/data/GeoLite2-Country.mmdb';

Usage

Inject

\ValanticSpryker\Client\MaxmindDb\MaxmindDbClient

where you need it.