- 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 therecord
property on
record classes have been removed. - BREAKING: On
GeoIp2\Record\Traits
, the deprecatedisAnonymousProxy
and
isSatelliteProvider
properties have been removed. - BREAKING: The
jsonSerialize
output has changed. GeoIp2\WebService\Client
methods now throw anInvalidArgumentException
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 toGeoIp2\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.