2017 © Pedro Peláez
 

library geoip

GeoIP database

image

xp-forge/geoip

GeoIP database

  • Saturday, October 14, 2017
  • by thekid
  • Repository
  • 3 Watchers
  • 0 Stars
  • 434 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 9 % Grown

The README.md

GeoIP database

Build status on GitHub XP Framework Module BSD Licence Requires PHP 7.0+ Supports PHP 8.0+ Latest Stable Version, (*1)

This API allows working with data geoips of different kinds in a functional style, e.g. map/reduce., (*2)

Examples

use com\maxmind\geoip\GeoIpDatabase;
use io\File;

$database= GeoIpDatabase::open(new File('GeoLite2-City.mmdb'));
$record= $database->lookup('8.8.8.8');
$database->close();

// $record= com.maxmind.geoip.Record@{
//   [city        ] com.maxmind.geoip.Name(#5375480: Mountain View)
//   [country     ] com.maxmind.geoip.Name(#6252001: United States; code= US)
//   [continent   ] com.maxmind.geoip.Name(#6255149: North America; code= NA)
//   [postalCode  ] "94035"
//   [location    ] com.maxmind.geoip.Location(37.386,-122.0838; tz= America/Los_Angeles)
//   [subdivisions] [com.maxmind.geoip.Name(#5332921: California; code= CA)]
// }

See also

  • http://dev.maxmind.com/geoip/geoip2/geolite2/ GeoLite2 Free Downloadable Databases
  • http://maxmind.github.io/MaxMind-DB/ MaxMind DB File Format Specification

The Versions

14/10 2017

dev-master

9999999-dev http://xp-framework.net/

GeoIP database

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

module xp

14/10 2017
29/08 2016

v2.1.0

2.1.0.0 http://xp-framework.net/

GeoIP database

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

module xp

21/02 2016

v2.0.0

2.0.0.0 http://xp-framework.net/

GeoIP database

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

module xp

23/01 2016

v1.1.0

1.1.0.0 http://xp-framework.net/

GeoIP database

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

module xp

14/12 2015

v1.0.0

1.0.0.0 http://xp-framework.net/

GeoIP database

  Sources   Download

BSD-3-Clause

The Requires

 

module xp

11/02 2015

v0.2.0

0.2.0.0 http://xp-framework.net/

GeoIP database

  Sources   Download

BSD-3-Clause

The Requires

 

module xp

10/02 2015

v0.1.0

0.1.0.0 http://xp-framework.net/

GeoIP database

  Sources   Download

BSD-3-Clause

The Requires

 

module xp