Skip to content

Releases: maxmind/GeoIP2-php

3.0.0

04 Dec 17:16
1a802ce
Compare
Choose a tag to compare
  • IMPORTANT: PHP 8.1 or greater is now required.
  • BREAKING: Read-only properties are now used for the model and record
    classes rather than magic methods. This significantly improves performance.
  • BREAKING: The raw property on model classess and the record property on
    record classes have been removed.
  • BREAKING: On GeoIp2\Record\Traits, the deprecated isAnonymousProxy and
    isSatelliteProvider properties have been removed.
  • BREAKING: The jsonSerialize output has changed.
  • GeoIp2\WebService\Client methods now throw an InvalidArgumentException
    if an invalid IP address is passed to them. Previously, they would make
    a request to the web service and throw a
    GeoIp2\Exception\InvalidRequestException.
  • The isAnycast property was added to GeoIp2\Record\Traits. This returns
    true if the IP address belongs to an anycast
    network
    . This is available for the
    GeoIP2 Country, City Plus, and Insights web services and the GeoIP2 Country,
    City, and Enterprise databases.

2.13.0

05 Aug 20:33
6a41d8f
Compare
Choose a tag to compare
  • The model class names are no longer constructed by concatenating strings.
    This change was made to improve support for tools like PHP-Scoper.
    Reported by Andrew Mead. GitHub #194.
  • Box 4.0.1 is now used to generate the geoip2.phar file.

2.12.2

30 Nov 18:15
Compare
Choose a tag to compare
  • The geoip2.phar now works when included from another directory.
    Reported by Eduardo Ruiz. GitHub #179.

2.12.1

23 Nov 17:01
Compare
Choose a tag to compare
  • The geoip2.phar included in 2.12.0 would only work in CLI applications.
    This was due to a change in Box 3.x. The Phar should now work in all
    applications. This release only affects users of the Phar file.

2.12.0

18 Nov 17:38
a320c2c
Compare
Choose a tag to compare
  • Support for mobile country code (MCC) and mobile network codes (MNC) was added for the GeoIP2 ISP and Enterprise databases as well as the GeoIP2 City and Insights web services. $mobileCountryCode and $mobileNetworkCode properties were added to GeoIp2\Model\Isp for the GeoIP2 ISP database and GeoIp2\Record\Traits for the Enterprise database and the GeoIP2 City and Insights web services. We expect this data to be available by late January, 2022.
  • geoip2.phar is now generated with Box 3.x.

2.11.0

01 Oct 18:48
Compare
Choose a tag to compare
  • IMPORTANT: PHP 7.2 or greater is now required.
  • Added the isResidentialProxy property to GeoIp2\Model\AnonymousIP and
    GeoIp2\Record\Traits.
  • Additional type hints have been added.

2.10.0

12 Dec 18:48
Compare
Choose a tag to compare
  • PHP 5.6 or greater is now required.
  • The network property was added to GeoIp2\Record\Traits,
    GeoIp2\Model\AnonymousIp, GeoIp2\Model\Asn,
    GeoIp2\Model\ConnectionType, Geoip2\Model\Domain,
    and GeoIp2\Model\Isp. This is a string in CIDR format representing the
    largest network where all of the properties besides ipAddress have the
    same value.
  • Updated documentation of anonymizer properties - isAnonymousVpn
    and isHostingProvider - to be more descriptive.
  • The userCount property was added to GeoIp2\Record\Traits. This is an
    integer which indicates the estimated number of users sharing the
    IP/network during the past 24 hours. This output is available from GeoIP2
    Precision Insights.
  • The staticIpScore property was added to GeoIp2\Record\Traits. This is
    a float which indicates how static or dynamic an IP address is. This
    output is available from GeoIP2 Precision Insights.

2.9.0

10 Apr 15:33
Compare
Choose a tag to compare
  • Refer to account IDs using the terminology "account" rather than "user".

2.8.0

18 Jan 21:30
Compare
Choose a tag to compare
  • The isInEuropeanUnion property was added to GeoIp2\Record\Country
    and GeoIp2\Record\RepresentedCountry. This property is true if the
    country is a member state of the European Union.

2.7.0

27 Oct 19:20
Compare
Choose a tag to compare
  • The following new anonymizer properties were added to GeoIp2\Record\Traits
    for use with GeoIP2 Precision Insights: isAnonymous, isAnonymousVpn,
    isHostingProvider, isPublicProxy, and isTorExitNode.