PHPackages                             labor-digital/max-mind-helpers - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. labor-digital/max-mind-helpers

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

labor-digital/max-mind-helpers
==============================

Helper package to implement IP to geolocation resolving based on the MaxMind database

1.1.0(6y ago)037Apache-2.0PHP

Since Apr 28Pushed 6y agoCompare

[ Source](https://github.com/labor-digital/max-mind-helpers)[ Packagist](https://packagist.org/packages/labor-digital/max-mind-helpers)[ RSS](/packages/labor-digital-max-mind-helpers/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Max Mind Helpers
================

[](#max-mind-helpers)

This library utilizes the free [Max Mind GeoLite2 Database](https://dev.maxmind.com/geoip/geoip2/geolite2/#IP_Geolocation_Usage) to perform IP =&gt; geolocation queries. The package downloads the MaxMind library to your local filesystem, so you can be sure that the client's IP will never leave your server.

The package consists of two parts. The first one is the "Downloader" which simplifies the process of "getting" the database and the "Reader" that is a wrapper around Maxmind's implementation. The reader can also cache queries to save performance using a PSR-16 SimpleCache\\CacheInterface

Installation
------------

[](#installation)

Install this package using Composer:

```
composer require labor-digital/max-mind-helpers

```

Usage
-----

[](#usage)

Download the database:

```
