Download the PHP package labor-digital/max-mind-helpers without Composer
On this page you can find all versions of the php package labor-digital/max-mind-helpers. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download labor-digital/max-mind-helpers
More information about labor-digital/max-mind-helpers
Files in labor-digital/max-mind-helpers
Package max-mind-helpers
Short Description Helper package to implement IP to geolocation resolving based on the MaxMind database
License Apache-2.0
Informations about the package max-mind-helpers
Max Mind Helpers
This library utilizes the free Max Mind GeoLite2 Database to perform IP => 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
Install this package using Composer:
Usage
Download the database:
Use the database:
Further reading
- https://github.com/maxmind/MaxMind-DB-Reader-php
- https://dev.maxmind.com/geoip/geoip2/geolite2/#IP_Geolocation_Usage
Postcardware
You're free to use this package, but if it makes it to your production environment, we highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using.
Our address is: LABOR.digital - Fischtorplatz 21 - 55116 Mainz, Germany.
We publish all received postcards on our company website.