GeoIP2
This page demonstrates how to use the GeoIP2 library to get information about a user's IP address.